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

Side by Side Diff: chrome/browser/local_discovery/privet_http.h

Issue 104493005: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_LOCAL_DISCOVERY_PRIVET_HTTP_H_ 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // TODO(noamsml): Remove all unnecessary parameters. 81 // TODO(noamsml): Remove all unnecessary parameters.
82 // Called in case of an error while registering. |action| is the 82 // Called in case of an error while registering. |action| is the
83 // registration action taken during the error. |reason| is the reason for 83 // registration action taken during the error. |reason| is the reason for
84 // the failure. |printer_http_code| is the http code returned from the 84 // the failure. |printer_http_code| is the http code returned from the
85 // printer. If it is -1, an internal error occurred while trying to complete 85 // printer. If it is -1, an internal error occurred while trying to complete
86 // the request. |json| may be null if printer_http_code signifies an error. 86 // the request. |json| may be null if printer_http_code signifies an error.
87 virtual void OnPrivetRegisterError(PrivetRegisterOperation* operation, 87 virtual void OnPrivetRegisterError(PrivetRegisterOperation* operation,
88 const std::string& action, 88 const std::string& action,
89 FailureReason reason, 89 FailureReason reason,
90 int printer_http_code, 90 int printer_http_code,
91 const DictionaryValue* json) = 0; 91 const base::DictionaryValue* json) = 0;
92 92
93 // Called when the registration is done. 93 // Called when the registration is done.
94 virtual void OnPrivetRegisterDone(PrivetRegisterOperation* operation, 94 virtual void OnPrivetRegisterDone(PrivetRegisterOperation* operation,
95 const std::string& device_id) = 0; 95 const std::string& device_id) = 0;
96 }; 96 };
97 97
98 virtual ~PrivetRegisterOperation() {} 98 virtual ~PrivetRegisterOperation() {}
99 99
100 virtual void Start() = 0; 100 virtual void Start() = 0;
101 // Owner SHOULD call explicitly before destroying operation. 101 // Owner SHOULD call explicitly before destroying operation.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 PrivetCapabilitiesOperation::Delegate* delegate) = 0; 178 PrivetCapabilitiesOperation::Delegate* delegate) = 0;
179 virtual scoped_ptr<PrivetLocalPrintOperation> CreateLocalPrintOperation( 179 virtual scoped_ptr<PrivetLocalPrintOperation> CreateLocalPrintOperation(
180 PrivetLocalPrintOperation::Delegate* delegate) = 0; 180 PrivetLocalPrintOperation::Delegate* delegate) = 0;
181 181
182 // A name for the HTTP client, e.g. the device name for the privet device. 182 // A name for the HTTP client, e.g. the device name for the privet device.
183 virtual const std::string& GetName() = 0; 183 virtual const std::string& GetName() = 0;
184 }; 184 };
185 185
186 } // namespace local_discovery 186 } // namespace local_discovery
187 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ 187 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/invalidator_storage.cc ('k') | chrome/browser/local_discovery/privet_http_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698