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

Side by Side Diff: chrome/renderer/render_thread.cc

Issue 123001: Move renderer_preferences.h from chrome/browser into chrome/common. We (Closed)
Patch Set: include deps Created 11 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
« no previous file with comments | « chrome/renderer/render_thread.h ('k') | chrome/renderer/render_view.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/renderer/render_thread.h" 5 #include "chrome/renderer/render_thread.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
12 #include "base/stats_table.h" 12 #include "base/stats_table.h"
13 #include "chrome/browser/renderer_preferences.h"
14 #include "chrome/common/app_cache/app_cache_context_impl.h" 13 #include "chrome/common/app_cache/app_cache_context_impl.h"
15 #include "chrome/common/app_cache/app_cache_dispatcher.h" 14 #include "chrome/common/app_cache/app_cache_dispatcher.h"
16 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/render_messages.h" 16 #include "chrome/common/render_messages.h"
17 #include "chrome/common/renderer_preferences.h"
18 #include "chrome/common/notification_service.h" 18 #include "chrome/common/notification_service.h"
19 #include "chrome/common/url_constants.h" 19 #include "chrome/common/url_constants.h"
20 #include "chrome/plugin/npobject_util.h" 20 #include "chrome/plugin/npobject_util.h"
21 // TODO(port) 21 // TODO(port)
22 #if defined(OS_WIN) 22 #if defined(OS_WIN)
23 #include "chrome/plugin/plugin_channel.h" 23 #include "chrome/plugin/plugin_channel.h"
24 #else 24 #else
25 #include "base/scoped_handle.h" 25 #include "base/scoped_handle.h"
26 #include "chrome/plugin/plugin_channel_base.h" 26 #include "chrome/plugin/plugin_channel_base.h"
27 #include "webkit/glue/weburlrequest.h" 27 #include "webkit/glue/weburlrequest.h"
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 394
395 void RenderThread::OnPurgePluginListCache() { 395 void RenderThread::OnPurgePluginListCache() {
396 // The call below will cause a GetPlugins call with refresh=true, but at this 396 // The call below will cause a GetPlugins call with refresh=true, but at this
397 // point we already know that the browser has refreshed its list, so disable 397 // point we already know that the browser has refreshed its list, so disable
398 // refresh temporarily to prevent each renderer process causing the list to be 398 // refresh temporarily to prevent each renderer process causing the list to be
399 // regenerated. 399 // regenerated.
400 plugin_refresh_allowed_ = false; 400 plugin_refresh_allowed_ = false;
401 WebKit::resetPluginCache(); 401 WebKit::resetPluginCache();
402 plugin_refresh_allowed_ = true; 402 plugin_refresh_allowed_ = true;
403 } 403 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_thread.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698