| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 Response QueryUsageAndQuota(DevToolsCommandId command_id, | 79 Response QueryUsageAndQuota(DevToolsCommandId command_id, |
| 80 const std::string& security_origin); | 80 const std::string& security_origin); |
| 81 | 81 |
| 82 Response SetColorPickerEnabled(bool enabled); | 82 Response SetColorPickerEnabled(bool enabled); |
| 83 Response RequestAppBanner(); | 83 Response RequestAppBanner(); |
| 84 | 84 |
| 85 Response SetControlNavigations(bool enabled); | 85 Response SetControlNavigations(bool enabled); |
| 86 Response ProcessNavigation(const std::string& response, int navigation_id); | 86 Response ProcessNavigation(const std::string& response, int navigation_id); |
| 87 | 87 |
| 88 Response AddScriptToEvaluateOnLoad(const std::string& source, |
| 89 std::string* identifier); |
| 90 Response RemoveScriptToEvaluateOnLoad(const std::string& identifier); |
| 91 Response SetAutoAttachToCreatedPages(bool auto_attach); |
| 92 Response GetResourceTree(scoped_refptr<FrameResourceTree>* tree); |
| 93 Response GetResourceContent(DevToolsCommandId command_id, |
| 94 const std::string& frame_id, |
| 95 const std::string& url); |
| 96 Response SearchInResource(DevToolsCommandId command_id, |
| 97 const std::string& frame_id, |
| 98 const std::string& url, |
| 99 const std::string& query, |
| 100 bool* case_sensitive, |
| 101 bool* is_regex); |
| 102 Response SetDocumentContent(const std::string& frame_id, |
| 103 const std::string& html); |
| 104 Response ConfigureOverlay(const bool* is_suspended, |
| 105 const std::string* message); |
| 106 Response GetAppManifest( |
| 107 std::string* url, |
| 108 std::vector<scoped_refptr<AppManifestError>>* errors, |
| 109 std::string* data); |
| 110 Response SetBlockedEventsWarningThreshold(double threshold); |
| 111 Response GetLayoutMetrics( |
| 112 scoped_refptr<LayoutViewport>* layout_viewport, |
| 113 scoped_refptr<VisualViewport>* visual_viewport); |
| 114 |
| 88 std::unique_ptr<PageNavigationThrottle> CreateThrottleForNavigation( | 115 std::unique_ptr<PageNavigationThrottle> CreateThrottleForNavigation( |
| 89 NavigationHandle* navigation_handle); | 116 NavigationHandle* navigation_handle); |
| 90 | 117 |
| 91 void OnPageNavigationThrottleDisposed(int navigation_id); | 118 void OnPageNavigationThrottleDisposed(int navigation_id); |
| 92 void NavigationRequested(const PageNavigationThrottle* throttle); | 119 void NavigationRequested(const PageNavigationThrottle* throttle); |
| 93 | 120 |
| 94 private: | 121 private: |
| 95 WebContentsImpl* GetWebContents(); | 122 WebContentsImpl* GetWebContents(); |
| 96 void NotifyScreencastVisibility(bool visible); | 123 void NotifyScreencastVisibility(bool visible); |
| 97 void InnerSwapCompositorFrame(); | 124 void InnerSwapCompositorFrame(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 base::WeakPtrFactory<PageHandler> weak_factory_; | 169 base::WeakPtrFactory<PageHandler> weak_factory_; |
| 143 | 170 |
| 144 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 171 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
| 145 }; | 172 }; |
| 146 | 173 |
| 147 } // namespace page | 174 } // namespace page |
| 148 } // namespace devtools | 175 } // namespace devtools |
| 149 } // namespace content | 176 } // namespace content |
| 150 | 177 |
| 151 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 178 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
| OLD | NEW |