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

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

Issue 1553333002: Move cloud print specific files out of local_discovery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moveprn
Patch Set: Created 4 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONFIRM_API_FLOW_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONFIRM_API_FLOW_H_
7
8 #include <string>
9
10 #include "base/values.h"
11 #include "chrome/browser/local_discovery/gcd_api_flow.h"
12 #include "net/url_request/url_request_context_getter.h"
13
14 namespace local_discovery {
15
16 // API call flow for server-side communication with CloudPrint for registration.
17 class PrivetConfirmApiCallFlow : public CloudPrintApiFlowRequest {
18 public:
19 typedef base::Callback<void(GCDApiFlow::Status /*success*/)> ResponseCallback;
20
21 // Create an OAuth2-based confirmation
22 PrivetConfirmApiCallFlow(const std::string& token,
23 const ResponseCallback& callback);
24
25 ~PrivetConfirmApiCallFlow() override;
26
27 void OnGCDAPIFlowError(GCDApiFlow::Status status) override;
28 void OnGCDAPIFlowComplete(const base::DictionaryValue& value) override;
29 net::URLFetcher::RequestType GetRequestType() override;
30
31 GURL GetURL() override;
32
33 private:
34 ResponseCallback callback_;
35 std::string token_;
36 };
37
38 } // namespace local_discovery
39
40 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONFIRM_API_FLOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/local_discovery/gcd_constants.cc ('k') | chrome/browser/local_discovery/privet_confirm_api_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698