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

Unified Diff: components/web_view/frame_devtools_agent.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/web_view/frame_connection.cc ('k') | components/web_view/frame_devtools_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/frame_devtools_agent.h
diff --git a/components/web_view/frame_devtools_agent.h b/components/web_view/frame_devtools_agent.h
deleted file mode 100644
index 5e35856647a5ef6b3a19834c0d0bc6b38af722a3..0000000000000000000000000000000000000000
--- a/components/web_view/frame_devtools_agent.h
+++ /dev/null
@@ -1,84 +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_WEB_VIEW_FRAME_DEVTOOLS_AGENT_H_
-#define COMPONENTS_WEB_VIEW_FRAME_DEVTOOLS_AGENT_H_
-
-#include <stdint.h>
-
-#include <map>
-#include <string>
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "components/devtools_service/public/interfaces/devtools_service.mojom.h"
-#include "components/web_view/frame.h"
-#include "mojo/public/cpp/bindings/binding.h"
-
-namespace base {
-class DictionaryValue;
-}
-
-namespace mojo {
-class Shell;
-}
-
-namespace web_view {
-
-class FrameDevToolsAgentDelegate;
-
-// FrameDevToolsAgent relays messages between the DevTools service and the
-// DevTools agent of the frame that it attaches to.
-// It persists state across frame navigations and also intercepts
-// "Page.navigate" requests.
-class FrameDevToolsAgent : public devtools_service::DevToolsAgent {
- public:
- FrameDevToolsAgent(mojo::Shell* shell, FrameDevToolsAgentDelegate* delegate);
- ~FrameDevToolsAgent() override;
-
- // Attaches this agent to a new frame. |forward_agent| is the DevToolsAgent
- // interface provided by the frame. DevTools-related properties are added to
- // |devtools_properties|, which should be passed to the frame to initialize
- // its DevTools agent.
- void AttachFrame(devtools_service::DevToolsAgentPtr forward_agent,
- Frame::ClientPropertyMap* devtools_properties);
-
- private:
- class FrameDevToolsAgentClient;
-
- void RegisterAgentIfNecessary();
-
- void HandlePageNavigateRequest(const base::DictionaryValue* request);
-
- // devtools_service::DevToolsAgent implementation.
- void SetClient(devtools_service::DevToolsAgentClientPtr client) override;
- void DispatchProtocolMessage(const mojo::String& message) override;
-
- // The following methods are called by |client_impl_|.
- void OnReceivedClientMessage(int32_t call_id,
- const mojo::String& message,
- const mojo::String& state);
- void OnForwardClientClosed();
-
- mojo::Shell* const shell_;
- FrameDevToolsAgentDelegate* const delegate_;
-
- const std::string id_;
-
- scoped_ptr<FrameDevToolsAgentClient> client_impl_;
-
- mojo::Binding<DevToolsAgent> binding_;
- // The DevToolsAgent interface provided by the frame. This class will forward
- // DevToolsAgent method calls it receives to |forward_agent_|.
- devtools_service::DevToolsAgentPtr forward_agent_;
-
- std::string state_;
- std::map<int, std::string> pending_messages_;
-
- DISALLOW_COPY_AND_ASSIGN(FrameDevToolsAgent);
-};
-
-} // namespace web_view
-
-#endif // COMPONENTS_WEB_VIEW_FRAME_DEVTOOLS_AGENT_H_
« no previous file with comments | « components/web_view/frame_connection.cc ('k') | components/web_view/frame_devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698