| 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 const MediaStreamRequest& request, | 516 const MediaStreamRequest& request, |
| 517 const MediaResponseCallback& callback) override; | 517 const MediaResponseCallback& callback) override; |
| 518 bool CheckMediaAccessPermission(const GURL& security_origin, | 518 bool CheckMediaAccessPermission(const GURL& security_origin, |
| 519 MediaStreamType type) override; | 519 MediaStreamType type) override; |
| 520 SessionStorageNamespace* GetSessionStorageNamespace( | 520 SessionStorageNamespace* GetSessionStorageNamespace( |
| 521 SiteInstance* instance) override; | 521 SiteInstance* instance) override; |
| 522 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; | 522 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; |
| 523 FrameTree* GetFrameTree() override; | 523 FrameTree* GetFrameTree() override; |
| 524 void SetIsVirtualKeyboardRequested(bool requested) override; | 524 void SetIsVirtualKeyboardRequested(bool requested) override; |
| 525 bool IsVirtualKeyboardRequested() override; | 525 bool IsVirtualKeyboardRequested() override; |
| 526 bool IsOverridingUserAgent() override; |
| 526 | 527 |
| 527 // NavigatorDelegate --------------------------------------------------------- | 528 // NavigatorDelegate --------------------------------------------------------- |
| 528 | 529 |
| 529 void DidStartNavigation(NavigationHandle* navigation_handle) override; | 530 void DidStartNavigation(NavigationHandle* navigation_handle) override; |
| 530 void DidRedirectNavigation(NavigationHandle* navigation_handle) override; | 531 void DidRedirectNavigation(NavigationHandle* navigation_handle) override; |
| 531 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; | 532 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; |
| 532 void DidFinishNavigation(NavigationHandle* navigation_handle) override; | 533 void DidFinishNavigation(NavigationHandle* navigation_handle) override; |
| 533 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, | 534 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
| 534 const GURL& validated_url, | 535 const GURL& validated_url, |
| 535 bool is_error_page, | 536 bool is_error_page, |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 void RenderFrameForInterstitialPageCreated( | 702 void RenderFrameForInterstitialPageCreated( |
| 702 RenderFrameHost* render_frame_host) override; | 703 RenderFrameHost* render_frame_host) override; |
| 703 | 704 |
| 704 // Sets the passed interstitial as the currently showing interstitial. | 705 // Sets the passed interstitial as the currently showing interstitial. |
| 705 // No interstitial page should already be attached. | 706 // No interstitial page should already be attached. |
| 706 void AttachInterstitialPage(InterstitialPageImpl* interstitial_page) override; | 707 void AttachInterstitialPage(InterstitialPageImpl* interstitial_page) override; |
| 707 | 708 |
| 708 // Unsets the currently showing interstitial. | 709 // Unsets the currently showing interstitial. |
| 709 void DetachInterstitialPage() override; | 710 void DetachInterstitialPage() override; |
| 710 | 711 |
| 712 void UpdateOverridingUserAgent() override; |
| 713 |
| 711 // Unpause the throbber if it was paused. | 714 // Unpause the throbber if it was paused. |
| 712 void DidProceedOnInterstitial() override; | 715 void DidProceedOnInterstitial() override; |
| 713 | 716 |
| 714 typedef base::Callback<void(WebContents*)> CreatedCallback; | 717 typedef base::Callback<void(WebContents*)> CreatedCallback; |
| 715 | 718 |
| 716 // Forces overscroll to be disabled (used by touch emulation). | 719 // Forces overscroll to be disabled (used by touch emulation). |
| 717 void SetForceDisableOverscrollContent(bool force_disable); | 720 void SetForceDisableOverscrollContent(bool force_disable); |
| 718 | 721 |
| 719 AudioStreamMonitor* audio_stream_monitor() { | 722 AudioStreamMonitor* audio_stream_monitor() { |
| 720 return &audio_stream_monitor_; | 723 return &audio_stream_monitor_; |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 // Adds/removes a callback called on creation of each new WebContents. | 1359 // Adds/removes a callback called on creation of each new WebContents. |
| 1357 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1360 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1358 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1361 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1359 | 1362 |
| 1360 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1363 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1361 }; | 1364 }; |
| 1362 | 1365 |
| 1363 } // namespace content | 1366 } // namespace content |
| 1364 | 1367 |
| 1365 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1368 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |