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

Unified Diff: components/html_viewer/devtools_agent_impl.h

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 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
« no previous file with comments | « components/html_viewer/content_handler_impl.cc ('k') | components/html_viewer/devtools_agent_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/devtools_agent_impl.h
diff --git a/components/html_viewer/devtools_agent_impl.h b/components/html_viewer/devtools_agent_impl.h
deleted file mode 100644
index bcb429cc5d956d84a16ff16b8fa7c8e577b67161..0000000000000000000000000000000000000000
--- a/components/html_viewer/devtools_agent_impl.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright 2015 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 COMPONENTS_HTML_VIEWER_DEVTOOLS_AGENT_IMPL_H_
-#define COMPONENTS_HTML_VIEWER_DEVTOOLS_AGENT_IMPL_H_
-
-#include <string>
-#include <vector>
-
-#include "base/macros.h"
-#include "components/devtools_service/public/interfaces/devtools_service.mojom.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "third_party/WebKit/public/web/WebDevToolsAgentClient.h"
-
-namespace blink {
-class WebLocalFrame;
-}
-
-namespace html_viewer {
-
-class DevToolsAgentImpl : public devtools_service::DevToolsAgent,
- public blink::WebDevToolsAgentClient {
- public:
- // |frame| must outlive this object.
- // This agent should restore its internal state using |state| if it is not
- // null.
- DevToolsAgentImpl(blink::WebLocalFrame* frame,
- const std::string& id,
- const std::string* state);
- ~DevToolsAgentImpl() override;
-
- void BindToRequest(mojo::InterfaceRequest<DevToolsAgent> request);
-
- private:
- // devtools_service::DevToolsAgent implementation.
- void SetClient(devtools_service::DevToolsAgentClientPtr client) override;
- void DispatchProtocolMessage(const mojo::String& message) override;
-
- // blink::WebDevToolsAgentClient implementation.
- void sendProtocolMessage(int session_id,
- int call_id,
- const blink::WebString& response,
- const blink::WebString& state) override;
-
- void OnConnectionError();
-
- blink::WebLocalFrame* const frame_;
- const std::string id_;
-
- mojo::Binding<DevToolsAgent> binding_;
- devtools_service::DevToolsAgentClientPtr client_;
-
- // If we restore the agent's internal state using serialized state data from a
- // previous agent, the agent may generate messages before |client_| is set.
- // In that case, we need to cache messages for the client.
- bool cache_until_client_ready_;
-
- struct CachedClientMessage {
- int call_id;
- mojo::String response;
- mojo::String state;
- };
- std::vector<CachedClientMessage> cached_client_messages_;
-
- DISALLOW_COPY_AND_ASSIGN(DevToolsAgentImpl);
-};
-
-} // namespace html_viewer
-
-#endif // COMPONENTS_HTML_VIEWER_DEVTOOLS_AGENT_IMPL_H_
« no previous file with comments | « components/html_viewer/content_handler_impl.cc ('k') | components/html_viewer/devtools_agent_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698