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

Unified Diff: content/browser/devtools/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/page_domain_handler.cc
diff --git a/content/browser/devtools/page_domain_handler.cc b/content/browser/devtools/page_domain_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c02f30fd59afb6f1d0b3c87284679787e44e629d
--- /dev/null
+++ b/content/browser/devtools/page_domain_handler.cc
@@ -0,0 +1,103 @@
+// 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/page_domain_handler.h"
+
+namespace content {
+namespace devtools {
+
+typedef DevToolsProtocolFrontend::Response Response;
+typedef DevToolsProtocolFrontend::ResponseStatus ResponseStatus;
+
+PageDomainHandler::PageDomainHandler() {
+}
+
+PageDomainHandler::~PageDomainHandler() {
+}
+
+void PageDomainHandler::OnClientDetached() {
+}
+
+void PageDomainHandler::SetRenderViewHost(RenderViewHostImpl* host) {
+}
+
+void PageDomainHandler::SetFrontend(scoped_ptr<PageDomainFrontend> frontend) {
+}
+
+Response PageDomainHandler::Enable() {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::Disable() {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::Reload(
+ const bool* ignoreCache,
+ const std::string* script_to_evaluate_on_load,
+ const std::string* script_preprocessor) {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::Navigate(const std::string& url,
+ devtools::PageFrameId* frame_id) {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::GetNavigationHistory(
+ int* current_index,
+ std::vector<devtools::PageNavigationEntry>* entries) {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::NavigateToHistoryEntry(int entry_id) {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::SetTouchEmulationEnabled(bool enabled) {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::CaptureScreenshot(std::string* data) {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::CanScreencast(bool* result) {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::CanEmulate(bool* result) {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::StartScreencast(const std::string* format,
+ const int* quality,
+ const int* max_width,
+ const int* max_height) {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::StopScreencast() {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::HandleJavaScriptDialog(
+ bool accept,
+ const std::string* prompt_text) {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::QueryUsageAndQuota(
+ const std::string& security_origin,
+ devtools::PageQuota* quota,
+ devtools::PageUsage* usage) {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+Response PageDomainHandler::SetColorPickerEnabled(bool enabled) {
+ return Response(ResponseStatus::RESPONSE_STATUS_FALLTHROUGH, "");
+}
+
+} // namespace devtools
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698