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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2411723002: Split MediaSessionStateChanged() and MediaSessionMetadataChanged() (Closed)
Patch Set: rebased Created 4 years, 2 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 const ImageDownloadCallback& callback) override; 407 const ImageDownloadCallback& callback) override;
408 bool IsSubframe() const override; 408 bool IsSubframe() const override;
409 void Find(int request_id, 409 void Find(int request_id,
410 const base::string16& search_text, 410 const base::string16& search_text,
411 const blink::WebFindOptions& options) override; 411 const blink::WebFindOptions& options) override;
412 void StopFinding(StopFindAction action) override; 412 void StopFinding(StopFindAction action) override;
413 bool WasRecentlyAudible() override; 413 bool WasRecentlyAudible() override;
414 void GetManifest(const GetManifestCallback& callback) override; 414 void GetManifest(const GetManifestCallback& callback) override;
415 void ExitFullscreen(bool will_cause_resize) override; 415 void ExitFullscreen(bool will_cause_resize) override;
416 void ResumeLoadingCreatedWebContents() override; 416 void ResumeLoadingCreatedWebContents() override;
417 void OnMediaSessionStateChanged();
418 void ResumeMediaSession() override; 417 void ResumeMediaSession() override;
419 void SuspendMediaSession() override; 418 void SuspendMediaSession() override;
420 void StopMediaSession() override; 419 void StopMediaSession() override;
421 void OnPasswordInputShownOnHttp() override; 420 void OnPasswordInputShownOnHttp() override;
422 void OnCreditCardInputShownOnHttp() override; 421 void OnCreditCardInputShownOnHttp() override;
423 422
424 #if defined(OS_ANDROID) 423 #if defined(OS_ANDROID)
425 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; 424 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override;
426 virtual WebContentsAndroid* GetWebContentsAndroid(); 425 virtual WebContentsAndroid* GetWebContentsAndroid();
427 void ActivateNearestFindResult(float x, float y) override; 426 void ActivateNearestFindResult(float x, float y) override;
428 void RequestFindMatchRects(int current_version) override; 427 void RequestFindMatchRects(int current_version) override;
429 shell::InterfaceProvider* GetJavaInterfaces() override; 428 shell::InterfaceProvider* GetJavaInterfaces() override;
430 #elif defined(OS_MACOSX) 429 #elif defined(OS_MACOSX)
431 void SetAllowOtherViews(bool allow) override; 430 void SetAllowOtherViews(bool allow) override;
432 bool GetAllowOtherViews() override; 431 bool GetAllowOtherViews() override;
433 #endif 432 #endif
434 433
434 // This method is called when the MediaSession state has changed, and will
435 // notify the WebContents observers.
436 void OnMediaSessionStateChanged();
437 // This method is called when the MediaSession metadata has changed, and will
438 // notify the WebContents observers.
439 void OnMediaSessionMetadataChanged();
440
435 // Implementation of PageNavigator. 441 // Implementation of PageNavigator.
436 WebContents* OpenURL(const OpenURLParams& params) override; 442 WebContents* OpenURL(const OpenURLParams& params) override;
437 443
438 // Implementation of IPC::Sender. 444 // Implementation of IPC::Sender.
439 bool Send(IPC::Message* message) override; 445 bool Send(IPC::Message* message) override;
440 446
441 // RenderFrameHostDelegate --------------------------------------------------- 447 // RenderFrameHostDelegate ---------------------------------------------------
442 bool OnMessageReceived(RenderFrameHost* render_frame_host, 448 bool OnMessageReceived(RenderFrameHost* render_frame_host,
443 const IPC::Message& message) override; 449 const IPC::Message& message) override;
444 void OnAssociatedInterfaceRequest( 450 void OnAssociatedInterfaceRequest(
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 // Adds/removes a callback called on creation of each new WebContents. 1479 // Adds/removes a callback called on creation of each new WebContents.
1474 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1480 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1475 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1481 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1476 1482
1477 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1483 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1478 }; 1484 };
1479 1485
1480 } // namespace content 1486 } // namespace content
1481 1487
1482 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1488 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/media/session/media_session_browsertest.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698