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

Side by Side Diff: chrome/browser/ui/webui/plugins_ui.cc

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « chrome/browser/ui/webui/options2/options_ui2.cc ('k') | chrome/browser/ui/webui/policy_ui.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/webui/plugins_ui.h" 5 #include "chrome/browser/ui/webui/plugins_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 25 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
26 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" 26 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
27 #include "chrome/common/chrome_content_client.h" 27 #include "chrome/common/chrome_content_client.h"
28 #include "chrome/common/chrome_notification_types.h" 28 #include "chrome/common/chrome_notification_types.h"
29 #include "chrome/common/chrome_paths.h" 29 #include "chrome/common/chrome_paths.h"
30 #include "chrome/common/pref_names.h" 30 #include "chrome/common/pref_names.h"
31 #include "chrome/common/url_constants.h" 31 #include "chrome/common/url_constants.h"
32 #include "content/public/browser/notification_source.h" 32 #include "content/public/browser/notification_source.h"
33 #include "content/public/browser/plugin_service.h" 33 #include "content/public/browser/plugin_service.h"
34 #include "content/public/browser/web_contents.h" 34 #include "content/public/browser/web_contents.h"
35 #include "content/public/browser/web_ui_message_handler.h"
35 #include "grit/browser_resources.h" 36 #include "grit/browser_resources.h"
36 #include "grit/generated_resources.h" 37 #include "grit/generated_resources.h"
37 #include "grit/theme_resources.h" 38 #include "grit/theme_resources.h"
38 #include "grit/theme_resources_standard.h" 39 #include "grit/theme_resources_standard.h"
39 #include "ui/base/l10n/l10n_util.h" 40 #include "ui/base/l10n/l10n_util.h"
40 #include "ui/base/resource/resource_bundle.h" 41 #include "ui/base/resource/resource_bundle.h"
41 #include "webkit/plugins/npapi/plugin_group.h" 42 #include "webkit/plugins/npapi/plugin_group.h"
42 43
43 using content::PluginService; 44 using content::PluginService;
44 using content::WebContents; 45 using content::WebContents;
46 using content::WebUIMessageHandler;
45 using webkit::npapi::PluginGroup; 47 using webkit::npapi::PluginGroup;
46 using webkit::WebPluginInfo; 48 using webkit::WebPluginInfo;
47 49
48 namespace { 50 namespace {
49 51
50 ChromeWebUIDataSource* CreatePluginsUIHTMLSource() { 52 ChromeWebUIDataSource* CreatePluginsUIHTMLSource() {
51 ChromeWebUIDataSource* source = 53 ChromeWebUIDataSource* source =
52 new ChromeWebUIDataSource(chrome::kChromeUIPluginsHost); 54 new ChromeWebUIDataSource(chrome::kChromeUIPluginsHost);
53 55
54 source->AddLocalizedString("pluginsTitle", IDS_PLUGINS_TITLE); 56 source->AddLocalizedString("pluginsTitle", IDS_PLUGINS_TITLE);
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 392
391 // static 393 // static
392 void PluginsUI::RegisterUserPrefs(PrefService* prefs) { 394 void PluginsUI::RegisterUserPrefs(PrefService* prefs) {
393 prefs->RegisterBooleanPref(prefs::kPluginsShowDetails, 395 prefs->RegisterBooleanPref(prefs::kPluginsShowDetails,
394 false, 396 false,
395 PrefService::UNSYNCABLE_PREF); 397 PrefService::UNSYNCABLE_PREF);
396 prefs->RegisterBooleanPref(prefs::kPluginsShowSetReaderDefaultInfobar, 398 prefs->RegisterBooleanPref(prefs::kPluginsShowSetReaderDefaultInfobar,
397 true, 399 true,
398 PrefService::UNSYNCABLE_PREF); 400 PrefService::UNSYNCABLE_PREF);
399 } 401 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options2/options_ui2.cc ('k') | chrome/browser/ui/webui/policy_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698