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

Unified Diff: content/browser/devtools/protocol/page_domain_handler.cc

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 side-by-side diff with in-line comments
Download patch
Index: content/browser/devtools/protocol/page_domain_handler.cc
diff --git a/content/browser/devtools/protocol/page_domain_handler.cc b/content/browser/devtools/protocol/page_domain_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..73edf022b9cc3284da0bb86aac3078dacd90da1f
--- /dev/null
+++ b/content/browser/devtools/protocol/page_domain_handler.cc
@@ -0,0 +1,101 @@
+// 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.
+
+#include "content/browser/devtools/protocol/page_domain_handler.h"
+
+namespace content {
+namespace devtools {
+namespace page {
+
+typedef DevToolsProtocolFrontend::Response Response;
+
+Handler::Handler() {
+}
+
+Handler::~Handler() {
+}
+
+void Handler::OnClientDetached() {
+}
+
+void Handler::SetRenderViewHost(RenderViewHostImpl* host) {
+}
+
+void Handler::SetFrontend(scoped_ptr<Frontend> frontend) {
+ frontend_.swap(frontend);
+}
+
+Response Handler::Enable() {
+ return Response::FallThrough();
+}
+
+Response Handler::Disable() {
+ return Response::FallThrough();
+}
+
+Response Handler::Reload(const bool* ignoreCache,
+ const std::string* script_to_evaluate_on_load,
+ const std::string* script_preprocessor) {
+ return Response::FallThrough();
+}
+
+Response Handler::Navigate(const std::string& url,
+ FrameId* frame_id) {
+ return Response::FallThrough();
+}
+
+Response Handler::GetNavigationHistory(int* current_index,
+ std::vector<NavigationEntry>* entries) {
+ return Response::FallThrough();
+}
+
+Response Handler::NavigateToHistoryEntry(int entry_id) {
+ return Response::FallThrough();
+}
+
+Response Handler::SetTouchEmulationEnabled(bool enabled) {
+ return Response::FallThrough();
+}
+
+Response Handler::CaptureScreenshot(std::string* data) {
+ return Response::FallThrough();
+}
+
+Response Handler::CanScreencast(bool* result) {
+ return Response::FallThrough();
+}
+
+Response Handler::CanEmulate(bool* result) {
+ return Response::FallThrough();
+}
+
+Response Handler::StartScreencast(const std::string* format,
+ const int* quality,
+ const int* max_width,
+ const int* max_height) {
+ return Response::FallThrough();
+}
+
+Response Handler::StopScreencast() {
+ return Response::FallThrough();
+}
+
+Response Handler::HandleJavaScriptDialog(bool accept,
+ const std::string* prompt_text) {
+ return Response::FallThrough();
+}
+
+Response Handler::QueryUsageAndQuota(const std::string& security_origin,
+ Quota* quota,
+ Usage* usage) {
+ return Response::FallThrough();
+}
+
+Response Handler::SetColorPickerEnabled(bool enabled) {
+ return Response::FallThrough();
+}
+
+} // namespace page
+} // namespace devtools
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698