Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: content/browser/devtools/protocol/page_handler.h

Issue 508973003: DevTools: Protocol handler generator for content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_
7
8 #include "content/browser/devtools/protocol/devtools_protocol_handler_impl.h"
9
10 namespace content {
11 namespace devtools {
12 namespace page {
13
14 class PageHandler {
15 public:
16 typedef DevToolsProtocolFrontend::Response Response;
17
18 PageHandler();
19 virtual ~PageHandler();
20
21 void OnClientDetached();
22 void SetRenderViewHost(RenderViewHostImpl* host);
23 void SetFrontend(scoped_ptr<Frontend> frontend);
24
25 Response Enable();
26 Response Disable();
27
28 Response Reload(const bool* ignoreCache,
29 const std::string* script_to_evaluate_on_load,
30 const std::string* script_preprocessor);
31
32 Response Navigate(const std::string& url, FrameId* frame_id);
33
34 Response GetNavigationHistory(int* current_index,
35 std::vector<NavigationEntry>* entries);
36
37 Response NavigateToHistoryEntry(int entry_id);
38 Response SetTouchEmulationEnabled(bool enabled);
39
40 scoped_refptr<DevToolsProtocol::Response> CaptureScreenshot(
41 scoped_refptr<DevToolsProtocol::Command> command);
dgozman 2014/09/14 14:25:49 As discussed, let's pass scoped_ptr<CaptureScreens
42
43 Response CanScreencast(bool* result);
44 Response CanEmulate(bool* result);
45
46 Response StartScreencast(const std::string* format,
47 const int* quality,
48 const int* max_width,
49 const int* max_height);
50
51 Response StopScreencast();
52 Response HandleJavaScriptDialog(bool accept, const std::string* prompt_text);
53
54 scoped_refptr<DevToolsProtocol::Response> QueryUsageAndQuota(
55 const std::string& security_origin,
56 scoped_refptr<DevToolsProtocol::Command> command);
57
58 Response SetColorPickerEnabled(bool enabled);
59
60 private:
61 scoped_ptr<Frontend> frontend_;
62
63 DISALLOW_COPY_AND_ASSIGN(PageHandler);
64 };
65
66 } // namespace page
67 } // namespace devtools
68 } // namespace content
69
70 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/network_handler.cc ('k') | content/browser/devtools/protocol/page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698