| OLD | NEW |
| 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/renderer/chrome_render_process_observer.h" | 5 #include "chrome/renderer/chrome_render_process_observer.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "base/native_library.h" | 12 #include "base/native_library.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/process_util.h" | 14 #include "base/process_util.h" |
| 15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
| 16 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
| 17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
| 18 #include "chrome/common/extensions/extension_localization_peer.h" | 18 #include "chrome/common/extensions/extension_localization_peer.h" |
| 19 #include "chrome/common/net/net_resource_provider.h" | 19 #include "chrome/common/net/net_resource_provider.h" |
| 20 #include "chrome/common/render_messages.h" | 20 #include "chrome/common/render_messages.h" |
| 21 #include "chrome/renderer/chrome_content_renderer_client.h" | 21 #include "chrome/renderer/chrome_content_renderer_client.h" |
| 22 #include "chrome/renderer/content_settings_observer.h" | 22 #include "chrome/renderer/content_settings_observer.h" |
| 23 #include "chrome/renderer/security_filter_peer.h" | 23 #include "chrome/renderer/security_filter_peer.h" |
| 24 #include "content/common/view_messages.h" | |
| 25 #include "content/public/common/resource_dispatcher_delegate.h" | 24 #include "content/public/common/resource_dispatcher_delegate.h" |
| 26 #include "content/public/renderer/render_thread.h" | 25 #include "content/public/renderer/render_thread.h" |
| 27 #include "content/public/renderer/render_view_visitor.h" | 26 #include "content/public/renderer/render_view_visitor.h" |
| 28 #include "content/public/renderer/render_view.h" | 27 #include "content/public/renderer/render_view.h" |
| 29 #include "crypto/nss_util.h" | 28 #include "crypto/nss_util.h" |
| 30 #include "media/base/media.h" | 29 #include "media/base/media.h" |
| 31 #include "media/base/media_switches.h" | 30 #include "media/base/media_switches.h" |
| 32 #include "net/base/net_errors.h" | 31 #include "net/base/net_errors.h" |
| 33 #include "net/base/net_module.h" | 32 #include "net/base/net_module.h" |
| 34 #include "third_party/sqlite/sqlite3.h" | 33 #include "third_party/sqlite/sqlite3.h" |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 if (client_) | 415 if (client_) |
| 417 client_->OnPurgeMemory(); | 416 client_->OnPurgeMemory(); |
| 418 } | 417 } |
| 419 | 418 |
| 420 void ChromeRenderProcessObserver::ExecutePendingClearCache() { | 419 void ChromeRenderProcessObserver::ExecutePendingClearCache() { |
| 421 if (clear_cache_pending_) { | 420 if (clear_cache_pending_) { |
| 422 clear_cache_pending_ = false; | 421 clear_cache_pending_ = false; |
| 423 WebCache::clear(); | 422 WebCache::clear(); |
| 424 } | 423 } |
| 425 } | 424 } |
| OLD | NEW |