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

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

Issue 1309843005: Remove more //chrome dependencies from VariationsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@variations_service_get_channel
Patch Set: 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
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"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // VariationsServiceClient::GetBlockingPool(). 44 // VariationsServiceClient::GetBlockingPool().
45 virtual base::Callback<base::Version(void)> 45 virtual base::Callback<base::Version(void)>
46 GetVersionForSimulationCallback() = 0; 46 GetVersionForSimulationCallback() = 0;
47 47
48 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; 48 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
49 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; 49 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0;
50 50
51 // Gets the channel of the embedder. 51 // Gets the channel of the embedder.
52 virtual version_info::Channel GetChannel() = 0; 52 virtual version_info::Channel GetChannel() = 0;
53 53
54 // Returns the resource index corresponding to the given hash, or -1 if there
55 // is no corresponding resource.
56 virtual int GetIndexForResource(uint32_t hash) = 0;
57
54 // Called from VariationsService::PerformPreMainMessageLoopStartup(). 58 // Called from VariationsService::PerformPreMainMessageLoopStartup().
55 virtual void OnInitialStartup() {} 59 virtual void OnInitialStartup() {}
56 }; 60 };
57 61
58 } // namespace chrome_variations 62 } // namespace chrome_variations
59 63
60 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ 64 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698