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

Side by Side Diff: chrome_frame/registry_list_preferences_holder.h

Issue 9720001: Add a setting to CF to remove 'chromeframe' from the UserAgent on a per-pattern basis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor tweak to UA building. Created 8 years, 9 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 // A utility class for accessing and caching registry preferences that take
6 // the form of lists of strings.
7 // TODO(robertshield): Use the RegistryWatcher stuff to keep this list up to
8 // date.
9
10 #ifndef CHROME_FRAME_HTML_PREFERENCES_HOLDER_H_
grt (UTC plus 2) 2012/03/20 17:27:45 CHROME_FRAME_REGISTRY_LIST_PREFERENCES_HOLDER_H_
robertshield 2012/03/26 02:43:33 Done.
11 #define CHROME_FRAME_HTML_PREFERENCES_HOLDER_H_
12 #pragma once
13
14 #include <windows.h>
15
16 #include <vector>
17
18 #include "base/string16.h"
19
20 class RegistryListPreferencesHolder {
21 public:
22 RegistryListPreferencesHolder();
23
24 void Init(HKEY hive,
25 const wchar_t* registry_path,
26 const wchar_t* list_name);
27
28 bool Valid() { return valid_; }
grt (UTC plus 2) 2012/03/20 17:27:45 Valid() const
robertshield 2012/03/26 02:43:33 Done.
29
30 bool ListMatches(const string16& string);
grt (UTC plus 2) 2012/03/20 17:27:45 ListMatches() const
robertshield 2012/03/26 02:43:33 Done.
31
32 private:
33 std::vector<string16> values_;
34 bool valid_;
35
36 DISALLOW_COPY_AND_ASSIGN(RegistryListPreferencesHolder);
37 };
38
39 #endif // CHROME_FRAME_HTML_PREFERENCES_HOLDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698