Index: content/browser/devtools/page_domain_handler.h |
diff --git a/content/browser/devtools/page_domain_handler.h b/content/browser/devtools/page_domain_handler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..066b8d1af4d788526f4a0f33a0cff1603e8191e9 |
--- /dev/null |
+++ b/content/browser/devtools/page_domain_handler.h |
@@ -0,0 +1,64 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_DEVTOOLS_PAGE_DOMAIN_HANDLER_H_ |
+#define CONTENT_BROWSER_DEVTOOLS_PAGE_DOMAIN_HANDLER_H_ |
+ |
+#include "content/browser/devtools/devtools_protocol_handler.h" |
+ |
+namespace content { |
+namespace devtools { |
+ |
+class PageDomainHandler { |
+ public: |
+ typedef DevToolsProtocolFrontend::Response Response; |
+ |
+ PageDomainHandler(); |
+ virtual ~PageDomainHandler(); |
+ |
+ void OnClientDetached(); |
+ void SetRenderViewHost(RenderViewHostImpl* host); |
+ void SetFrontend(scoped_ptr<PageDomainFrontend> frontend); |
+ |
+ Response Enable(); |
+ Response Disable(); |
+ |
+ Response Reload(const bool* ignoreCache, |
+ const std::string* script_to_evaluate_on_load, |
+ const std::string* script_preprocessor); |
+ |
+ Response Navigate(const std::string& url, devtools::PageFrameId* frame_id); |
+ |
+ Response GetNavigationHistory( |
+ int* current_index, |
+ std::vector<devtools::PageNavigationEntry>* entries); |
+ |
+ Response NavigateToHistoryEntry(int entry_id); |
+ Response SetTouchEmulationEnabled(bool enabled); |
+ Response CaptureScreenshot(std::string* data); |
+ Response CanScreencast(bool* result); |
+ Response CanEmulate(bool* result); |
+ |
+ Response StartScreencast(const std::string* format, |
+ const int* quality, |
+ const int* max_width, |
+ const int* max_height); |
+ |
+ Response StopScreencast(); |
+ Response HandleJavaScriptDialog(bool accept, const std::string* prompt_text); |
+ |
+ Response QueryUsageAndQuota(const std::string& security_origin, |
+ devtools::PageQuota* quota, |
+ devtools::PageUsage* usage); |
+ |
+ Response SetColorPickerEnabled(bool enabled); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(PageDomainHandler); |
+}; |
+ |
+} // namespace devtools |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_DEVTOOLS_PAGE_DOMAIN_HANDLER_H_ |