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

Side by Side Diff: components/variations/service/variations_service_client.h

Issue 1312143003: Abstract chrome::GetChannel() through VariationsServiceClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@variations_service_upgrade_detector
Patch Set: Rebase Created 5 years, 3 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
« no previous file with comments | « components/variations/service/DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ 5 #ifndef COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_
6 #define COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ 6 #define COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/version.h" 11 #include "base/version.h"
12 #include "components/version_info/version_info.h"
12 13
13 namespace base { 14 namespace base {
14 class SequencedWorkerPool; 15 class SequencedWorkerPool;
15 } 16 }
16 17
17 namespace net { 18 namespace net {
18 class URLRequestContextGetter; 19 class URLRequestContextGetter;
19 } 20 }
20 21
21 namespace network_time { 22 namespace network_time {
(...skipping 18 matching lines...) Expand all
40 // Returns a callback that when run returns the base::Version to use for 41 // Returns a callback that when run returns the base::Version to use for
41 // variations seed simulation. VariationsService guarantees that the callback 42 // variations seed simulation. VariationsService guarantees that the callback
42 // will be run on the pool returned by 43 // will be run on the pool returned by
43 // VariationsServiceClient::GetBlockingPool(). 44 // VariationsServiceClient::GetBlockingPool().
44 virtual base::Callback<base::Version(void)> 45 virtual base::Callback<base::Version(void)>
45 GetVersionForSimulationCallback() = 0; 46 GetVersionForSimulationCallback() = 0;
46 47
47 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; 48 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
48 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; 49 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0;
49 50
51 // Gets the channel of the embedder.
52 virtual version_info::Channel GetChannel() = 0;
53
50 // Called from VariationsService::PerformPreMainMessageLoopStartup(). 54 // Called from VariationsService::PerformPreMainMessageLoopStartup().
51 virtual void OnInitialStartup() {} 55 virtual void OnInitialStartup() {}
52 }; 56 };
53 57
54 } // namespace chrome_variations 58 } // namespace chrome_variations
55 59
56 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ 60 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « components/variations/service/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698