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

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

Issue 2444833004: Decouple MediaSession/MediaSessionObserver from WebContents in Java[OBSOLETE, go to the combined CL] (Closed)
Patch Set: addressed nits from jam@ Created 4 years, 1 month 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 ResumeMediaSession() override;
418 void SuspendMediaSession() override;
419 void StopMediaSession() override;
420 void OnPasswordInputShownOnHttp() override; 417 void OnPasswordInputShownOnHttp() override;
421 void OnCreditCardInputShownOnHttp() override; 418 void OnCreditCardInputShownOnHttp() override;
422 void SetIsOverlayContent(bool is_overlay_content) override; 419 void SetIsOverlayContent(bool is_overlay_content) override;
423 420
424 #if defined(OS_ANDROID) 421 #if defined(OS_ANDROID)
425 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; 422 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override;
426 virtual WebContentsAndroid* GetWebContentsAndroid(); 423 virtual WebContentsAndroid* GetWebContentsAndroid();
427 void ActivateNearestFindResult(float x, float y) override; 424 void ActivateNearestFindResult(float x, float y) override;
428 void RequestFindMatchRects(int current_version) override; 425 void RequestFindMatchRects(int current_version) override;
429 service_manager::InterfaceProvider* GetJavaInterfaces() override; 426 service_manager::InterfaceProvider* GetJavaInterfaces() override;
430 #elif defined(OS_MACOSX) 427 #elif defined(OS_MACOSX)
431 void SetAllowOtherViews(bool allow) override; 428 void SetAllowOtherViews(bool allow) override;
432 bool GetAllowOtherViews() override; 429 bool GetAllowOtherViews() override;
433 #endif 430 #endif
434 431
435 // This method is called when the MediaSession state has changed, and will
436 // notify the WebContents observers.
437 void OnMediaSessionStateChanged();
438 // This method is called when the MediaSession metadata has changed, and will
439 // notify the WebContents observers.
440 void OnMediaSessionMetadataChanged();
441
442 // Implementation of PageNavigator. 432 // Implementation of PageNavigator.
443 WebContents* OpenURL(const OpenURLParams& params) override; 433 WebContents* OpenURL(const OpenURLParams& params) override;
444 434
445 // Implementation of IPC::Sender. 435 // Implementation of IPC::Sender.
446 bool Send(IPC::Message* message) override; 436 bool Send(IPC::Message* message) override;
447 437
448 // RenderFrameHostDelegate --------------------------------------------------- 438 // RenderFrameHostDelegate ---------------------------------------------------
449 bool OnMessageReceived(RenderFrameHost* render_frame_host, 439 bool OnMessageReceived(RenderFrameHost* render_frame_host,
450 const IPC::Message& message) override; 440 const IPC::Message& message) override;
451 void OnAssociatedInterfaceRequest( 441 void OnAssociatedInterfaceRequest(
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 // Adds/removes a callback called on creation of each new WebContents. 1451 // Adds/removes a callback called on creation of each new WebContents.
1462 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1452 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1463 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1453 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1464 1454
1465 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1455 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1466 }; 1456 };
1467 1457
1468 } // namespace content 1458 } // namespace content
1469 1459
1470 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1460 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698