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

Side by Side Diff: extensions/browser/api/cast_channel/keep_alive_delegate.h

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_KEEP_ALIVE_DELEGATE_H_ 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_KEEP_ALIVE_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_KEEP_ALIVE_DELEGATE_H_ 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_KEEP_ALIVE_DELEGATE_H_
7 7
8 #include "base/threading/thread_checker.h" 8 #include "base/threading/thread_checker.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "extensions/browser/api/cast_channel/cast_transport.h" 10 #include "extensions/browser/api/cast_channel/cast_transport.h"
11 #include "extensions/common/api/cast_channel/cast_channel.pb.h" 11 #include "extensions/common/api/cast_channel/cast_channel.pb.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 namespace core_api { 14 namespace api {
15 namespace cast_channel { 15 namespace cast_channel {
16 16
17 class CastSocket; 17 class CastSocket;
18 class Logger; 18 class Logger;
19 19
20 // Decorator delegate which provides keep-alive functionality. 20 // Decorator delegate which provides keep-alive functionality.
21 // Keep-alive messages are handled by this object; all other messages and 21 // Keep-alive messages are handled by this object; all other messages and
22 // errors are passed to |inner_delegate_|. 22 // errors are passed to |inner_delegate_|.
23 class KeepAliveDelegate : public CastTransport::Delegate { 23 class KeepAliveDelegate : public CastTransport::Delegate {
24 public: 24 public:
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // The PONG message to send over the wire. 104 // The PONG message to send over the wire.
105 CastMessage pong_message_; 105 CastMessage pong_message_;
106 106
107 base::ThreadChecker thread_checker_; 107 base::ThreadChecker thread_checker_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(KeepAliveDelegate); 109 DISALLOW_COPY_AND_ASSIGN(KeepAliveDelegate);
110 }; 110 };
111 111
112 } // namespace cast_channel 112 } // namespace cast_channel
113 } // namespace core_api 113 } // namespace api
114 } // namespace extensions 114 } // namespace extensions
115 115
116 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_KEEP_ALIVE_DELEGATE_H_ 116 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_KEEP_ALIVE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698