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

Side by Side Diff: chrome/browser/ui/webui/options/content_settings_handler.h

Issue 2021343003: MD Site Settings: Add five new top level categories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 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 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_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const content::NotificationSource& source, 56 const content::NotificationSource& source,
57 const content::NotificationDetails& details) override; 57 const content::NotificationDetails& details) override;
58 58
59 // PepperFlashSettingsManager::Client implementation. 59 // PepperFlashSettingsManager::Client implementation.
60 void OnGetPermissionSettingsCompleted( 60 void OnGetPermissionSettingsCompleted(
61 uint32_t request_id, 61 uint32_t request_id,
62 bool success, 62 bool success,
63 PP_Flash_BrowserOperations_Permission default_permission, 63 PP_Flash_BrowserOperations_Permission default_permission,
64 const ppapi::FlashSiteSettings& sites) override; 64 const ppapi::FlashSiteSettings& sites) override;
65 65
66 // Gets a string identifier for the group name, for use in HTML.
67 static std::string ContentSettingsTypeToGroupName(ContentSettingsType type);
68
69 private: 66 private:
70 // Used to determine whether we should show links to Flash camera and 67 // Used to determine whether we should show links to Flash camera and
71 // microphone settings. 68 // microphone settings.
72 class MediaSettingsInfo { 69 class MediaSettingsInfo {
73 public: 70 public:
74 MediaSettingsInfo(); 71 MediaSettingsInfo();
75 ~MediaSettingsInfo(); 72 ~MediaSettingsInfo();
76 73
77 // Cached Pepper Flash settings. 74 // Cached Pepper Flash settings.
78 struct ForFlash { 75 struct ForFlash {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 std::unique_ptr<content::HostZoomMap::Subscription> 277 std::unique_ptr<content::HostZoomMap::Subscription>
281 signin_host_zoom_map_subscription_; 278 signin_host_zoom_map_subscription_;
282 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; 279 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_;
283 280
284 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); 281 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler);
285 }; 282 };
286 283
287 } // namespace options 284 } // namespace options
288 285
289 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 286 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698