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

Side by Side Diff: chrome/browser/extensions/api/dial/dial_api.h

Issue 22870011: chrome.mdns API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_API_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/extensions/api/api_function.h" 10 #include "chrome/browser/extensions/api/api_function.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 DialAPI* dial_; 89 DialAPI* dial_;
90 90
91 // Result of the discoverNow call to the DIAL registry. This result is 91 // Result of the discoverNow call to the DIAL registry. This result is
92 // retrieved on the IO thread but the function result is returned on the UI 92 // retrieved on the IO thread but the function result is returned on the UI
93 // thread. 93 // thread.
94 bool result_; 94 bool result_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(DialDiscoverNowFunction); 96 DISALLOW_COPY_AND_ASSIGN(DialDiscoverNowFunction);
97 }; 97 };
98 98
99 /**
100 * Function for network service.
101 */
102 class DialRegisterNetworkServiceFunction : public ApiFunction {
103 public:
104 DialRegisterNetworkServiceFunction();
105
106 protected:
107 virtual ~DialRegisterNetworkServiceFunction() {}
108
109 // extensions::ApiFunction:
110 virtual bool RunImpl() OVERRIDE;
111
112 private:
113 DECLARE_EXTENSION_FUNCTION("dial.registerNetworkService",
114 DIAL_REGISTERNETWORKSERVICE)
115 DISALLOW_COPY_AND_ASSIGN(DialRegisterNetworkServiceFunction);
116 };
117
99 } // namespace api 118 } // namespace api
100 119
101 } // namespace extensions 120 } // namespace extensions
102 121
103 #endif // CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_API_H_ 122 #endif // CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/dial/dial_api.cc » ('j') | chrome/common/extensions/api/dial.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698