| 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 const MediaStreamRequest& request, | 506 const MediaStreamRequest& request, |
| 507 const MediaResponseCallback& callback) override; | 507 const MediaResponseCallback& callback) override; |
| 508 bool CheckMediaAccessPermission(const GURL& security_origin, | 508 bool CheckMediaAccessPermission(const GURL& security_origin, |
| 509 MediaStreamType type) override; | 509 MediaStreamType type) override; |
| 510 SessionStorageNamespace* GetSessionStorageNamespace( | 510 SessionStorageNamespace* GetSessionStorageNamespace( |
| 511 SiteInstance* instance) override; | 511 SiteInstance* instance) override; |
| 512 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; | 512 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; |
| 513 FrameTree* GetFrameTree() override; | 513 FrameTree* GetFrameTree() override; |
| 514 void SetIsVirtualKeyboardRequested(bool requested) override; | 514 void SetIsVirtualKeyboardRequested(bool requested) override; |
| 515 bool IsVirtualKeyboardRequested() override; | 515 bool IsVirtualKeyboardRequested() override; |
| 516 bool IsOverridingUserAgent() override; |
| 516 | 517 |
| 517 // NavigatorDelegate --------------------------------------------------------- | 518 // NavigatorDelegate --------------------------------------------------------- |
| 518 | 519 |
| 519 void DidStartNavigation(NavigationHandle* navigation_handle) override; | 520 void DidStartNavigation(NavigationHandle* navigation_handle) override; |
| 520 void DidRedirectNavigation(NavigationHandle* navigation_handle) override; | 521 void DidRedirectNavigation(NavigationHandle* navigation_handle) override; |
| 521 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; | 522 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; |
| 522 void DidFinishNavigation(NavigationHandle* navigation_handle) override; | 523 void DidFinishNavigation(NavigationHandle* navigation_handle) override; |
| 523 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, | 524 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
| 524 const GURL& validated_url, | 525 const GURL& validated_url, |
| 525 bool is_error_page, | 526 bool is_error_page, |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 void RenderFrameForInterstitialPageCreated( | 695 void RenderFrameForInterstitialPageCreated( |
| 695 RenderFrameHost* render_frame_host) override; | 696 RenderFrameHost* render_frame_host) override; |
| 696 | 697 |
| 697 // Sets the passed interstitial as the currently showing interstitial. | 698 // Sets the passed interstitial as the currently showing interstitial. |
| 698 // No interstitial page should already be attached. | 699 // No interstitial page should already be attached. |
| 699 void AttachInterstitialPage(InterstitialPageImpl* interstitial_page) override; | 700 void AttachInterstitialPage(InterstitialPageImpl* interstitial_page) override; |
| 700 | 701 |
| 701 // Unsets the currently showing interstitial. | 702 // Unsets the currently showing interstitial. |
| 702 void DetachInterstitialPage() override; | 703 void DetachInterstitialPage() override; |
| 703 | 704 |
| 705 void UpdateOverridingUserAgent() override; |
| 706 |
| 704 // Unpause the throbber if it was paused. | 707 // Unpause the throbber if it was paused. |
| 705 void DidProceedOnInterstitial() override; | 708 void DidProceedOnInterstitial() override; |
| 706 | 709 |
| 707 typedef base::Callback<void(WebContents*)> CreatedCallback; | 710 typedef base::Callback<void(WebContents*)> CreatedCallback; |
| 708 | 711 |
| 709 // Forces overscroll to be disabled (used by touch emulation). | 712 // Forces overscroll to be disabled (used by touch emulation). |
| 710 void SetForceDisableOverscrollContent(bool force_disable); | 713 void SetForceDisableOverscrollContent(bool force_disable); |
| 711 | 714 |
| 712 AudioStreamMonitor* audio_stream_monitor() { | 715 AudioStreamMonitor* audio_stream_monitor() { |
| 713 return &audio_stream_monitor_; | 716 return &audio_stream_monitor_; |
| (...skipping 642 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 |