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

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

Issue 298883012: Added GetURL, GetOAuthScope, GetExtraRequestHeaders into GCDBaseApiFlow::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/local_discovery/cloud_device_list.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_ 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_ 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 void Start(); 27 void Start();
28 28
29 virtual void OnGCDAPIFlowError(GCDBaseApiFlow* flow, 29 virtual void OnGCDAPIFlowError(GCDBaseApiFlow* flow,
30 GCDBaseApiFlow::Status status) OVERRIDE; 30 GCDBaseApiFlow::Status status) OVERRIDE;
31 31
32 virtual void OnGCDAPIFlowComplete( 32 virtual void OnGCDAPIFlowComplete(
33 GCDBaseApiFlow* flow, 33 GCDBaseApiFlow* flow,
34 const base::DictionaryValue* value) OVERRIDE; 34 const base::DictionaryValue* value) OVERRIDE;
35 35
36 virtual bool GCDIsCloudPrint() OVERRIDE; 36 virtual GURL GetURL() OVERRIDE;
37 37
38 GCDBaseApiFlow* GetOAuth2ApiFlowForTests() { return &api_flow_; } 38 GCDBaseApiFlow* GetOAuth2ApiFlowForTests() { return &api_flow_; }
39 39
40 const DeviceList& device_list() const { 40 const DeviceList& device_list() const {
41 return device_list_; 41 return device_list_;
42 } 42 }
43 43
44 private: 44 private:
45 bool FillDeviceDetails(const base::DictionaryValue* value, 45 bool FillDeviceDetails(const base::DictionaryValue* value,
46 CloudDeviceListDelegate::Device* device); 46 CloudDeviceListDelegate::Device* device);
47 47
48 scoped_refptr<net::URLRequestContextGetter> request_context_;
49 DeviceList device_list_; 48 DeviceList device_list_;
50 CloudDeviceListDelegate* delegate_; 49 CloudDeviceListDelegate* delegate_;
51 GCDBaseApiFlow api_flow_; 50 GCDBaseApiFlow api_flow_;
52 }; 51 };
53 52
54 } // namespace local_discovery 53 } // namespace local_discovery
55 54
56 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_ 55 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/local_discovery/cloud_device_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698