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

Side by Side Diff: chrome/common/extensions/features/feature_channel.h

Issue 2137463003: [Extensions] Move Feature channel code into //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test fix Created 4 years, 5 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_COMMON_EXTENSIONS_FEATURES_FEATURE_CHANNEL_H_
6 #define CHROME_COMMON_EXTENSIONS_FEATURES_FEATURE_CHANNEL_H_
7
8 #include "base/macros.h"
9
10 namespace version_info {
11 enum class Channel;
12 }
13
14 namespace extensions {
15
16 // Gets the current channel as seen by the Feature system.
17 version_info::Channel GetCurrentChannel();
18
19 // Sets the current channel as seen by the Feature system. In the browser
20 // process this should be chrome::GetChannel(), and in the renderer this will
21 // need to come from an IPC.
22 void SetCurrentChannel(version_info::Channel channel);
23
24 // Gets the default channel as seen by the Feature system.
25 version_info::Channel GetDefaultChannel();
26
27 // Scoped channel setter. Use for tests.
28 class ScopedCurrentChannel {
29 public:
30 explicit ScopedCurrentChannel(version_info::Channel channel);
31 ~ScopedCurrentChannel();
32
33 private:
34 version_info::Channel original_channel_;
35
36 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentChannel);
37 };
38
39 } // namespace extensions
40
41 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_FEATURE_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698