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

Side by Side Diff: extensions/browser/api/networking_private/networking_private_delegate.h

Issue 2726223004: Introduce networking.cast API (Closed)
Patch Set: histograms Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "components/keyed_service/core/keyed_service.h" 15 #include "components/keyed_service/core/keyed_service.h"
16 #include "extensions/common/api/networking_private.h" 16 #include "extensions/common/api/networking_private.h"
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 class NetworkingPrivateDelegateObserver; 20 class NetworkingPrivateDelegateObserver;
21 21
22 namespace api {
23 namespace networking_private {
24 struct DeviceStateProperties;
25 struct VerificationProperties;
26 } // networking_private
27 } // api
28
29 // Base class for platform dependent networkingPrivate API implementations. 22 // Base class for platform dependent networkingPrivate API implementations.
30 // All inputs and results for this class use ONC values. See 23 // All inputs and results for this class use ONC values. See
31 // networking_private.idl for descriptions of the expected inputs and results. 24 // networking_private.idl for descriptions of the expected inputs and results.
32 class NetworkingPrivateDelegate : public KeyedService { 25 class NetworkingPrivateDelegate : public KeyedService {
33 public: 26 public:
34 using DictionaryCallback = 27 using DictionaryCallback =
35 base::Callback<void(std::unique_ptr<base::DictionaryValue>)>; 28 base::Callback<void(std::unique_ptr<base::DictionaryValue>)>;
36 using VoidCallback = base::Callback<void()>; 29 using VoidCallback = base::Callback<void()>;
37 using BoolCallback = base::Callback<void(bool)>; 30 using BoolCallback = base::Callback<void(bool)>;
38 using StringCallback = base::Callback<void(const std::string&)>; 31 using StringCallback = base::Callback<void(const std::string&)>;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 213
221 // Interface for UI methods. May be null. 214 // Interface for UI methods. May be null.
222 std::unique_ptr<UIDelegate> ui_delegate_; 215 std::unique_ptr<UIDelegate> ui_delegate_;
223 216
224 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateDelegate); 217 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateDelegate);
225 }; 218 };
226 219
227 } // namespace extensions 220 } // namespace extensions
228 221
229 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE _H_ 222 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698