| OLD | NEW |
| 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/renderer/chrome_render_process_observer.h" | 5 #include "chrome/renderer/chrome_render_process_observer.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/allocator/allocator_extension.h" | 10 #include "base/allocator/allocator_extension.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 46 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
| 47 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" | 47 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" |
| 48 #include "third_party/WebKit/public/web/WebView.h" | 48 #include "third_party/WebKit/public/web/WebView.h" |
| 49 #include "third_party/sqlite/sqlite3.h" | 49 #include "third_party/sqlite/sqlite3.h" |
| 50 #include "v8/include/v8.h" | 50 #include "v8/include/v8.h" |
| 51 | 51 |
| 52 #if defined(OS_WIN) | 52 #if defined(OS_WIN) |
| 53 #include "base/win/iat_patch_function.h" | 53 #include "base/win/iat_patch_function.h" |
| 54 #endif | 54 #endif |
| 55 | 55 |
| 56 using WebKit::WebCache; | 56 using blink::WebCache; |
| 57 using WebKit::WebCrossOriginPreflightResultCache; | 57 using blink::WebCrossOriginPreflightResultCache; |
| 58 using WebKit::WebFontCache; | 58 using blink::WebFontCache; |
| 59 using WebKit::WebRuntimeFeatures; | 59 using blink::WebRuntimeFeatures; |
| 60 using WebKit::WebSecurityPolicy; | 60 using blink::WebSecurityPolicy; |
| 61 using WebKit::WebString; | 61 using blink::WebString; |
| 62 using content::RenderThread; | 62 using content::RenderThread; |
| 63 | 63 |
| 64 namespace { | 64 namespace { |
| 65 | 65 |
| 66 const int kCacheStatsDelayMS = 2000; | 66 const int kCacheStatsDelayMS = 2000; |
| 67 const size_t kUnitializedCacheCapacity = UINT_MAX; | 67 const size_t kUnitializedCacheCapacity = UINT_MAX; |
| 68 | 68 |
| 69 class RendererResourceDelegate : public content::ResourceDispatcherDelegate { | 69 class RendererResourceDelegate : public content::ResourceDispatcherDelegate { |
| 70 public: | 70 public: |
| 71 RendererResourceDelegate() | 71 RendererResourceDelegate() |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 if (clear_cache_pending_ && webkit_initialized_) { | 443 if (clear_cache_pending_ && webkit_initialized_) { |
| 444 clear_cache_pending_ = false; | 444 clear_cache_pending_ = false; |
| 445 WebCache::clear(); | 445 WebCache::clear(); |
| 446 } | 446 } |
| 447 } | 447 } |
| 448 | 448 |
| 449 const RendererContentSettingRules* | 449 const RendererContentSettingRules* |
| 450 ChromeRenderProcessObserver::content_setting_rules() const { | 450 ChromeRenderProcessObserver::content_setting_rules() const { |
| 451 return &content_setting_rules_; | 451 return &content_setting_rules_; |
| 452 } | 452 } |
| OLD | NEW |