![]() ![]() Here, the Media History is notifying its subscribers when new events happen. The observer pattern is a software design pattern in which an object, named the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods. As a recap, directly from Wikipedia - Observer pattern: It implements the Observer pattern documented in the famous Design Patterns book by the Gang of Four. The Chromium Media History feature consists of these parts:Įach of these items resides in its own file and we’ll be taking a look at them one by one. Here, I have linked the Github mirror of the chromium repo, because it’s much easier to browse than Google’s own source listing. The source code for the Media History feature lies in the chromium/chrome/browser/media/history/ folder of the repository. So, let us see what are the high-level parts that make up the Google Chrome media history feature. ![]() Now, it does not store the media files themselves, but just the length of the time played or watched, and the URL it was playing on. This database stores a history of URLs on which you played an audio or video stream on, hence the name “Media”. ![]() However, this is just the name of a database that is stored in Chrome’s local storage. The first thing you’re probably wondering after reading the article title is, “What is Media History?” Indeed, there is no such feature when looking externally at Google Chrome. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |