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