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

Side by Side Diff: chrome/browser/ui/webui/options/extension_settings_handler.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. 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
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 #include "chrome/browser/ui/webui/options/extension_settings_handler.h" 5 #include "chrome/browser/ui/webui/options/extension_settings_handler.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 28 matching lines...) Expand all
39 #include "content/public/browser/site_instance.h" 39 #include "content/public/browser/site_instance.h"
40 #include "content/public/browser/web_contents.h" 40 #include "content/public/browser/web_contents.h"
41 #include "content/public/browser/web_contents_view.h" 41 #include "content/public/browser/web_contents_view.h"
42 #include "grit/browser_resources.h" 42 #include "grit/browser_resources.h"
43 #include "grit/chromium_strings.h" 43 #include "grit/chromium_strings.h"
44 #include "grit/generated_resources.h" 44 #include "grit/generated_resources.h"
45 #include "grit/theme_resources.h" 45 #include "grit/theme_resources.h"
46 #include "ui/base/l10n/l10n_util.h" 46 #include "ui/base/l10n/l10n_util.h"
47 #include "ui/base/resource/resource_bundle.h" 47 #include "ui/base/resource/resource_bundle.h"
48 48
49 using content::RenderViewHost;
49 using content::WebContents; 50 using content::WebContents;
50 51
51 namespace { 52 namespace {
52 53
53 bool ShouldShowExtension(const Extension* extension) { 54 bool ShouldShowExtension(const Extension* extension) {
54 // Don't show themes since this page's UI isn't really useful for themes. 55 // Don't show themes since this page's UI isn't really useful for themes.
55 if (extension->is_theme()) 56 if (extension->is_theme())
56 return false; 57 return false;
57 58
58 // Don't show component extensions because they are only extensions as an 59 // Don't show component extensions because they are only extensions as an
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 chrome::VIEW_TYPE_EXTENSION_DIALOG == host_type) 776 chrome::VIEW_TYPE_EXTENSION_DIALOG == host_type)
776 continue; 777 continue;
777 778
778 GURL url = host->GetDelegate()->GetURL(); 779 GURL url = host->GetDelegate()->GetURL();
779 content::RenderProcessHost* process = host->GetProcess(); 780 content::RenderProcessHost* process = host->GetProcess();
780 result->push_back( 781 result->push_back(
781 ExtensionPage(url, process->GetID(), host->GetRoutingID(), 782 ExtensionPage(url, process->GetID(), host->GetRoutingID(),
782 process->GetBrowserContext()->IsOffTheRecord())); 783 process->GetBrowserContext()->IsOffTheRecord()));
783 } 784 }
784 } 785 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/extension_settings_handler.h ('k') | chrome/browser/ui/webui/options/options_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698