Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: content/public/browser/web_contents_observer.h

Issue 2060933002: Let Flash join and be controlled by media session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pepper_to_contents
Patch Set: modified when to add/remove player to/from MediaSession Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // This methods is invoked when the title of the WebContents is set. If the 355 // This methods is invoked when the title of the WebContents is set. If the
356 // title was explicitly set, |explicit_set| is true, otherwise the title was 356 // title was explicitly set, |explicit_set| is true, otherwise the title was
357 // synthesized and |explicit_set| is false. 357 // synthesized and |explicit_set| is false.
358 virtual void TitleWasSet(NavigationEntry* entry, bool explicit_set) {} 358 virtual void TitleWasSet(NavigationEntry* entry, bool explicit_set) {}
359 359
360 virtual void AppCacheAccessed(const GURL& manifest_url, 360 virtual void AppCacheAccessed(const GURL& manifest_url,
361 bool blocked_by_policy) {} 361 bool blocked_by_policy) {}
362 362
363 // These methods are invoked when a Pepper plugin instance is created/deleted 363 // These methods are invoked when a Pepper plugin instance is created/deleted
364 // in the DOM. 364 // in the DOM.
365 virtual void PepperInstanceCreated() {} 365 virtual void PepperInstanceCreated(int32_t pp_instance) {}
366 virtual void PepperInstanceDeleted() {} 366 virtual void PepperInstanceDeleted(int32_t pp_instance) {}
367 367
368 // Notification that a plugin has crashed. 368 // Notification that a plugin has crashed.
369 // |plugin_pid| is the process ID identifying the plugin process. Note that 369 // |plugin_pid| is the process ID identifying the plugin process. Note that
370 // this ID is supplied by the renderer process, so should not be trusted. 370 // this ID is supplied by the renderer process, so should not be trusted.
371 // Besides, the corresponding process has probably died at this point. The ID 371 // Besides, the corresponding process has probably died at this point. The ID
372 // may even have been reused by a new process. 372 // may even have been reused by a new process.
373 virtual void PluginCrashed(const base::FilePath& plugin_path, 373 virtual void PluginCrashed(const base::FilePath& plugin_path,
374 base::ProcessId plugin_pid) {} 374 base::ProcessId plugin_pid) {}
375 375
376 // Notification that the given plugin has hung or become unhung. This 376 // Notification that the given plugin has hung or become unhung. This
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 void ResetWebContents(); 488 void ResetWebContents();
489 489
490 WebContentsImpl* web_contents_; 490 WebContentsImpl* web_contents_;
491 491
492 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 492 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
493 }; 493 };
494 494
495 } // namespace content 495 } // namespace content
496 496
497 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 497 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698