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

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

Issue 9006036: Create an API around PluginService and use it from Chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
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/about_ui.h" 5 #include "chrome/browser/ui/webui/about_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 29 matching lines...) Expand all
40 #include "chrome/browser/ui/browser_dialogs.h" 40 #include "chrome/browser/ui/browser_dialogs.h"
41 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 41 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
42 #include "chrome/common/about_handler.h" 42 #include "chrome/common/about_handler.h"
43 #include "chrome/common/chrome_paths.h" 43 #include "chrome/common/chrome_paths.h"
44 #include "chrome/common/chrome_version_info.h" 44 #include "chrome/common/chrome_version_info.h"
45 #include "chrome/common/jstemplate_builder.h" 45 #include "chrome/common/jstemplate_builder.h"
46 #include "chrome/common/net/gaia/google_service_auth_error.h" 46 #include "chrome/common/net/gaia/google_service_auth_error.h"
47 #include "chrome/common/render_messages.h" 47 #include "chrome/common/render_messages.h"
48 #include "chrome/common/url_constants.h" 48 #include "chrome/common/url_constants.h"
49 #include "content/browser/gpu/gpu_process_host_ui_shim.h" 49 #include "content/browser/gpu/gpu_process_host_ui_shim.h"
50 #include "content/browser/plugin_service.h"
51 #include "content/browser/renderer_host/render_view_host.h" 50 #include "content/browser/renderer_host/render_view_host.h"
52 #include "content/browser/sensors/sensors_provider.h" 51 #include "content/browser/sensors/sensors_provider.h"
53 #include "content/browser/tab_contents/tab_contents.h" 52 #include "content/browser/tab_contents/tab_contents.h"
54 #include "content/public/browser/browser_thread.h" 53 #include "content/public/browser/browser_thread.h"
54 #include "content/public/browser/plugin_service.h"
55 #include "content/public/browser/render_process_host.h" 55 #include "content/public/browser/render_process_host.h"
56 #include "content/public/common/content_client.h" 56 #include "content/public/common/content_client.h"
57 #include "content/public/common/process_type.h" 57 #include "content/public/common/process_type.h"
58 #include "crypto/nss_util.h" 58 #include "crypto/nss_util.h"
59 #include "googleurl/src/gurl.h" 59 #include "googleurl/src/gurl.h"
60 #include "grit/browser_resources.h" 60 #include "grit/browser_resources.h"
61 #include "grit/chromium_strings.h" 61 #include "grit/chromium_strings.h"
62 #include "grit/generated_resources.h" 62 #include "grit/generated_resources.h"
63 #include "grit/locale_settings.h" 63 #include "grit/locale_settings.h"
64 #include "net/base/escape.h" 64 #include "net/base/escape.h"
(...skipping 20 matching lines...) Expand all
85 #include "content/browser/zygote_host_linux.h" 85 #include "content/browser/zygote_host_linux.h"
86 #endif 86 #endif
87 87
88 #if defined(USE_TCMALLOC) 88 #if defined(USE_TCMALLOC)
89 #include "third_party/tcmalloc/chromium/src/google/malloc_extension.h" 89 #include "third_party/tcmalloc/chromium/src/google/malloc_extension.h"
90 #endif 90 #endif
91 91
92 using base::Time; 92 using base::Time;
93 using base::TimeDelta; 93 using base::TimeDelta;
94 using content::BrowserThread; 94 using content::BrowserThread;
95 using content::PluginService;
95 96
96 namespace { 97 namespace {
97 98
98 const char kCreditsJsPath[] = "credits.js"; 99 const char kCreditsJsPath[] = "credits.js";
99 const char kMemoryJsPath[] = "memory.js"; 100 const char kMemoryJsPath[] = "memory.js";
100 const char kStatsJsPath[] = "stats.js"; 101 const char kStatsJsPath[] = "stats.js";
101 const char kStringsJsPath[] = "strings.js"; 102 const char kStringsJsPath[] = "strings.js";
102 const char kVersionJsPath[] = "version.js"; 103 const char kVersionJsPath[] = "version.js";
103 104
104 // When you type about:memory, it actually loads this intermediate URL that 105 // When you type about:memory, it actually loads this intermediate URL that
(...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 } 1375 }
1375 1376
1376 AboutUI::AboutUI(TabContents* contents, const std::string& name) 1377 AboutUI::AboutUI(TabContents* contents, const std::string& name)
1377 : ChromeWebUI(contents) { 1378 : ChromeWebUI(contents) {
1378 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); 1379 Profile* profile = Profile::FromBrowserContext(contents->browser_context());
1379 ChromeURLDataManager::DataSource* source = 1380 ChromeURLDataManager::DataSource* source =
1380 new AboutUIHTMLSource(name, profile); 1381 new AboutUIHTMLSource(name, profile);
1381 if (source) 1382 if (source)
1382 profile->GetChromeURLDataManager()->AddDataSource(source); 1383 profile->GetChromeURLDataManager()->AddDataSource(source);
1383 } 1384 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/content_setting_bubble_contents.cc ('k') | chrome/browser/ui/webui/flash_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698