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

Side by Side Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.cc

Issue 3743001: FBTF: Fix more ctor/dtors found by clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Rebase to pick up mac fix on ToT Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/tab_contents/render_view_host_delegate_helper.h" 5 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/background_contents_service.h" 10 #include "chrome/browser/background_contents_service.h"
11 #include "chrome/browser/character_encoding.h" 11 #include "chrome/browser/character_encoding.h"
12 #include "chrome/browser/extensions/extensions_service.h" 12 #include "chrome/browser/extensions/extensions_service.h"
13 #include "chrome/browser/prefs/pref_service.h" 13 #include "chrome/browser/prefs/pref_service.h"
14 #include "chrome/browser/profile.h" 14 #include "chrome/browser/profile.h"
15 #include "chrome/browser/renderer_host/render_view_host.h" 15 #include "chrome/browser/renderer_host/render_view_host.h"
16 #include "chrome/browser/renderer_host/render_process_host.h" 16 #include "chrome/browser/renderer_host/render_process_host.h"
17 #include "chrome/browser/renderer_host/render_widget_fullscreen_host.h" 17 #include "chrome/browser/renderer_host/render_widget_fullscreen_host.h"
18 #include "chrome/browser/renderer_host/render_widget_host.h" 18 #include "chrome/browser/renderer_host/render_widget_host.h"
19 #include "chrome/browser/renderer_host/render_widget_host_view.h" 19 #include "chrome/browser/renderer_host/render_widget_host_view.h"
20 #include "chrome/browser/renderer_host/site_instance.h" 20 #include "chrome/browser/renderer_host/site_instance.h"
21 #include "chrome/browser/tab_contents/background_contents.h" 21 #include "chrome/browser/tab_contents/background_contents.h"
22 #include "chrome/browser/tab_contents/tab_contents.h" 22 #include "chrome/browser/tab_contents/tab_contents.h"
23 #include "chrome/browser/tab_contents/tab_contents_view.h" 23 #include "chrome/browser/tab_contents/tab_contents_view.h"
24 #include "chrome/browser/user_style_sheet_watcher.h" 24 #include "chrome/browser/user_style_sheet_watcher.h"
25 #include "chrome/common/chrome_switches.h" 25 #include "chrome/common/chrome_switches.h"
26 #include "chrome/common/notification_service.h" 26 #include "chrome/common/notification_service.h"
27 #include "chrome/common/pref_names.h" 27 #include "chrome/common/pref_names.h"
28 28
29 RenderViewHostDelegateViewHelper::RenderViewHostDelegateViewHelper() {}
30
31 RenderViewHostDelegateViewHelper::~RenderViewHostDelegateViewHelper() {}
32
29 BackgroundContents* 33 BackgroundContents*
30 RenderViewHostDelegateViewHelper::MaybeCreateBackgroundContents( 34 RenderViewHostDelegateViewHelper::MaybeCreateBackgroundContents(
31 int route_id, 35 int route_id,
32 Profile* profile, 36 Profile* profile,
33 SiteInstance* site, 37 SiteInstance* site,
34 GURL opener_url, 38 GURL opener_url,
35 const string16& frame_name) { 39 const string16& frame_name) {
36 ExtensionsService* extensions_service = profile->GetExtensionsService(); 40 ExtensionsService* extensions_service = profile->GetExtensionsService();
37 41
38 if (!opener_url.is_valid() || 42 if (!opener_url.is_valid() ||
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 inspector_settings->SetWithoutPathExpansion(key, 336 inspector_settings->SetWithoutPathExpansion(key,
333 Value::CreateStringValue(value)); 337 Value::CreateStringValue(value));
334 } 338 }
335 339
336 void RenderViewHostDelegateHelper::ClearInspectorSettings(Profile* profile) { 340 void RenderViewHostDelegateHelper::ClearInspectorSettings(Profile* profile) {
337 DictionaryValue* inspector_settings = 341 DictionaryValue* inspector_settings =
338 profile->GetPrefs()->GetMutableDictionary( 342 profile->GetPrefs()->GetMutableDictionary(
339 prefs::kWebKitInspectorSettings); 343 prefs::kWebKitInspectorSettings);
340 inspector_settings->Clear(); 344 inspector_settings->Clear();
341 } 345 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_host_delegate_helper.h ('k') | chrome/browser/tab_contents/tab_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698