OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_RENDERER_OVERRIDES_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void OnSwapCompositorFrame(const cc::CompositorFrameMetadata& frame_metadata); | 45 void OnSwapCompositorFrame(const cc::CompositorFrameMetadata& frame_metadata); |
46 void OnVisibilityChanged(bool visible); | 46 void OnVisibilityChanged(bool visible); |
47 void SetRenderViewHost(RenderViewHostImpl* host); | 47 void SetRenderViewHost(RenderViewHostImpl* host); |
48 void ClearRenderViewHost(); | 48 void ClearRenderViewHost(); |
49 void DidAttachInterstitialPage(); | 49 void DidAttachInterstitialPage(); |
50 void DidDetachInterstitialPage(); | 50 void DidDetachInterstitialPage(); |
51 | 51 |
52 private: | 52 private: |
53 void InnerSwapCompositorFrame(); | 53 void InnerSwapCompositorFrame(); |
54 | 54 |
55 // DOM domain. | |
56 scoped_refptr<DevToolsProtocol::Response> | |
57 GrantPermissionsForSetFileInputFiles( | |
58 scoped_refptr<DevToolsProtocol::Command> command); | |
59 | |
60 // Network domain. | 55 // Network domain. |
61 scoped_refptr<DevToolsProtocol::Response> CanEmulateNetworkConditions( | 56 scoped_refptr<DevToolsProtocol::Response> CanEmulateNetworkConditions( |
62 scoped_refptr<DevToolsProtocol::Command> command); | 57 scoped_refptr<DevToolsProtocol::Command> command); |
63 scoped_refptr<DevToolsProtocol::Response> ClearBrowserCache( | 58 scoped_refptr<DevToolsProtocol::Response> ClearBrowserCache( |
64 scoped_refptr<DevToolsProtocol::Command> command); | 59 scoped_refptr<DevToolsProtocol::Command> command); |
65 scoped_refptr<DevToolsProtocol::Response> ClearBrowserCookies( | 60 scoped_refptr<DevToolsProtocol::Response> ClearBrowserCookies( |
66 scoped_refptr<DevToolsProtocol::Command> command); | 61 scoped_refptr<DevToolsProtocol::Command> command); |
67 | 62 |
68 // Page domain. | 63 // Page domain. |
69 scoped_refptr<DevToolsProtocol::Response> PageEnable( | 64 scoped_refptr<DevToolsProtocol::Response> PageEnable( |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 int last_cursor_x_; | 124 int last_cursor_x_; |
130 int last_cursor_y_; | 125 int last_cursor_y_; |
131 RenderWidgetHost::MouseEventCallback mouse_event_callback_; | 126 RenderWidgetHost::MouseEventCallback mouse_event_callback_; |
132 base::WeakPtrFactory<RendererOverridesHandler> weak_factory_; | 127 base::WeakPtrFactory<RendererOverridesHandler> weak_factory_; |
133 DISALLOW_COPY_AND_ASSIGN(RendererOverridesHandler); | 128 DISALLOW_COPY_AND_ASSIGN(RendererOverridesHandler); |
134 }; | 129 }; |
135 | 130 |
136 } // namespace content | 131 } // namespace content |
137 | 132 |
138 #endif // CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ | 133 #endif // CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ |
OLD | NEW |