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

Unified Diff: trunk/src/mojo/spy/spy_server_impl.h

Issue 296453021: Revert 272458 "Adding more guts to the mojo spy." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 | « trunk/src/mojo/spy/spy.cc ('k') | trunk/src/mojo/spy/spy_server_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/mojo/spy/spy_server_impl.h
===================================================================
--- trunk/src/mojo/spy/spy_server_impl.h (revision 272462)
+++ trunk/src/mojo/spy/spy_server_impl.h (working copy)
@@ -1,59 +0,0 @@
-// 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 MOJO_SPY_SPY_SERVER_IMPL_H_
-#define MOJO_SPY_SPY_SERVER_IMPL_H_
-
-#include <map>
-
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "mojo/public/cpp/system/core.h"
-#include "mojo/spy/public/spy.mojom.h"
-#include "url/gurl.h"
-
-namespace mojo {
-
-class SpyServerImpl :
- public base::RefCounted<SpyServerImpl>,
- public InterfaceImpl<spy_api::SpyServer> {
- public:
- SpyServerImpl();
-
- // spy_api::SpyServer implementation.
- virtual void StartSession(
- const spy_api::Version& version,
- const mojo::Callback<void(spy_api::Result,
- mojo::String)>& callback) OVERRIDE;
-
- virtual void StopSession(
- const mojo::Callback<void(spy_api::Result)>& callback) OVERRIDE;
-
- virtual void TrackConnection(
- uint32_t id,
- spy_api::ConnectionOptions options,
- const mojo::Callback<void(spy_api::Result)>& callback) OVERRIDE;
-
- virtual void OnConnectionError() OVERRIDE;
-
- // SpyServerImpl own methods.
- void OnIntercept(const GURL& url);
-
- ScopedMessagePipeHandle ServerPipe();
-
- private:
- friend class base::RefCounted<SpyServerImpl>;
- virtual ~SpyServerImpl();
-
- // Item models the entities that we track by IDs.
- struct Item;
-
- MessagePipe pipe_;
- bool has_session_;
- std::map<uint32_t, Item*> items_;
-};
-
-} // namespace mojo
-
-#endif // MOJO_SPY_SPY_SERVER_IMPL_H_
« no previous file with comments | « trunk/src/mojo/spy/spy.cc ('k') | trunk/src/mojo/spy/spy_server_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698