OLD | NEW |
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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 const ImageDownloadCallback& callback) override; | 406 const ImageDownloadCallback& callback) override; |
407 bool IsSubframe() const override; | 407 bool IsSubframe() const override; |
408 void Find(int request_id, | 408 void Find(int request_id, |
409 const base::string16& search_text, | 409 const base::string16& search_text, |
410 const blink::WebFindOptions& options) override; | 410 const blink::WebFindOptions& options) override; |
411 void StopFinding(StopFindAction action) override; | 411 void StopFinding(StopFindAction action) override; |
412 bool WasRecentlyAudible() override; | 412 bool WasRecentlyAudible() override; |
413 void GetManifest(const GetManifestCallback& callback) override; | 413 void GetManifest(const GetManifestCallback& callback) override; |
414 void ExitFullscreen(bool will_cause_resize) override; | 414 void ExitFullscreen(bool will_cause_resize) override; |
415 void ResumeLoadingCreatedWebContents() override; | 415 void ResumeLoadingCreatedWebContents() override; |
416 void ResumeMediaSession() override; | |
417 void SuspendMediaSession() override; | |
418 void StopMediaSession() override; | |
419 void OnPasswordInputShownOnHttp() override; | 416 void OnPasswordInputShownOnHttp() override; |
420 void OnCreditCardInputShownOnHttp() override; | 417 void OnCreditCardInputShownOnHttp() override; |
421 | 418 |
422 #if defined(OS_ANDROID) | 419 #if defined(OS_ANDROID) |
423 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; | 420 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; |
424 virtual WebContentsAndroid* GetWebContentsAndroid(); | 421 virtual WebContentsAndroid* GetWebContentsAndroid(); |
425 void ActivateNearestFindResult(float x, float y) override; | 422 void ActivateNearestFindResult(float x, float y) override; |
426 void RequestFindMatchRects(int current_version) override; | 423 void RequestFindMatchRects(int current_version) override; |
427 service_manager::InterfaceProvider* GetJavaInterfaces() override; | 424 service_manager::InterfaceProvider* GetJavaInterfaces() override; |
428 #elif defined(OS_MACOSX) | 425 #elif defined(OS_MACOSX) |
429 void SetAllowOtherViews(bool allow) override; | 426 void SetAllowOtherViews(bool allow) override; |
430 bool GetAllowOtherViews() override; | 427 bool GetAllowOtherViews() override; |
431 #endif | 428 #endif |
432 | 429 |
433 // This method is called when the MediaSession state has changed, and will | |
434 // notify the WebContents observers. | |
435 void OnMediaSessionStateChanged(); | |
436 // This method is called when the MediaSession metadata has changed, and will | |
437 // notify the WebContents observers. | |
438 void OnMediaSessionMetadataChanged(); | |
439 | |
440 // Implementation of PageNavigator. | 430 // Implementation of PageNavigator. |
441 WebContents* OpenURL(const OpenURLParams& params) override; | 431 WebContents* OpenURL(const OpenURLParams& params) override; |
442 | 432 |
443 // Implementation of IPC::Sender. | 433 // Implementation of IPC::Sender. |
444 bool Send(IPC::Message* message) override; | 434 bool Send(IPC::Message* message) override; |
445 | 435 |
446 // RenderFrameHostDelegate --------------------------------------------------- | 436 // RenderFrameHostDelegate --------------------------------------------------- |
447 bool OnMessageReceived(RenderFrameHost* render_frame_host, | 437 bool OnMessageReceived(RenderFrameHost* render_frame_host, |
448 const IPC::Message& message) override; | 438 const IPC::Message& message) override; |
449 void OnAssociatedInterfaceRequest( | 439 void OnAssociatedInterfaceRequest( |
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 // Adds/removes a callback called on creation of each new WebContents. | 1444 // Adds/removes a callback called on creation of each new WebContents. |
1455 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1445 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1456 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1446 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1457 | 1447 |
1458 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1448 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1459 }; | 1449 }; |
1460 | 1450 |
1461 } // namespace content | 1451 } // namespace content |
1462 | 1452 |
1463 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1453 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |