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

Unified Diff: chrome/browser/extensions/api/cast_channel/cast_socket.h

Issue 182213005: Move api_resource{,manager} out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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: chrome/browser/extensions/api/cast_channel/cast_socket.h
diff --git a/chrome/browser/extensions/api/cast_channel/cast_socket.h b/chrome/browser/extensions/api/cast_channel/cast_socket.h
index 7f035b6d0427c652a0c185dc76f606a1656aa392..1025cdd1e7b7d1b2caf15d8159a6c19e2853a49c 100644
--- a/chrome/browser/extensions/api/cast_channel/cast_socket.h
+++ b/chrome/browser/extensions/api/cast_channel/cast_socket.h
@@ -14,9 +14,9 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/thread_checker.h"
-#include "chrome/browser/extensions/api/api_resource.h"
-#include "chrome/browser/extensions/api/api_resource_manager.h"
#include "chrome/common/extensions/api/cast_channel.h"
+#include "extensions/browser/api/api_resource.h"
+#include "extensions/browser/api/api_resource_manager.h"
#include "net/base/completion_callback.h"
#include "net/base/io_buffer.h"
#include "net/base/ip_endpoint.h"
@@ -59,12 +59,12 @@ class CastSocket : public ApiResource,
public:
// An error occurred on the channel.
// It is fine to delete the socket in this callback.
- virtual void OnError(const CastSocket* socket,
- ChannelError error) = 0;
+ virtual void OnError(const CastSocket* socket, ChannelError error) = 0;
// A message was received on the channel.
// Do NOT delete the socket in this callback.
virtual void OnMessage(const CastSocket* socket,
const MessageInfo& message) = 0;
+
protected:
virtual ~Delegate() {}
};
@@ -126,9 +126,7 @@ class CastSocket : public ApiResource,
friend class ApiResourceManager<CastSocket>;
friend class CastSocketTest;
- static const char* service_name() {
- return "CastSocketManager";
- }
+ static const char* service_name() { return "CastSocketManager"; }
// Internal connection states.
enum ConnectionState {
« no previous file with comments | « chrome/browser/extensions/api/cast_channel/cast_channel_api.h ('k') | chrome/browser/extensions/api/hid/hid_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698