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

Side by Side Diff: chrome/renderer/chrome_render_process_observer.h

Issue 289863005: [Mac] Maximise timer slack for background tabs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial review Created 6 years, 7 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 #ifndef CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ 5 #ifndef CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_
6 #define CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ 6 #define CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 private: 44 private:
45 // RenderProcessObserver implementation. 45 // RenderProcessObserver implementation.
46 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; 46 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
47 virtual void WebKitInitialized() OVERRIDE; 47 virtual void WebKitInitialized() OVERRIDE;
48 virtual void OnRenderProcessShutdown() OVERRIDE; 48 virtual void OnRenderProcessShutdown() OVERRIDE;
49 49
50 void OnSetIsIncognitoProcess(bool is_incognito_process); 50 void OnSetIsIncognitoProcess(bool is_incognito_process);
51 void OnSetContentSettingsForCurrentURL( 51 void OnSetContentSettingsForCurrentURL(
52 const GURL& url, const ContentSettings& content_settings); 52 const GURL& url, const ContentSettings& content_settings);
53 void OnSetContentSettingRules(const RendererContentSettingRules& rules); 53 void OnSetContentSettingRules(const RendererContentSettingRules& rules);
54 void OnSetTimerCoalescing(bool enabled);
54 void OnSetCacheCapacities(size_t min_dead_capacity, 55 void OnSetCacheCapacities(size_t min_dead_capacity,
55 size_t max_dead_capacity, 56 size_t max_dead_capacity,
56 size_t capacity); 57 size_t capacity);
57 // If |on_navigation| is true, the clearing is delayed until the next 58 // If |on_navigation| is true, the clearing is delayed until the next
58 // navigation event. 59 // navigation event.
59 void OnClearCache(bool on_navigation); 60 void OnClearCache(bool on_navigation);
60 void OnGetCacheResourceStats(); 61 void OnGetCacheResourceStats();
61 void OnSetFieldTrialGroup(const std::string& fiel_trial_name, 62 void OnSetFieldTrialGroup(const std::string& fiel_trial_name,
62 const std::string& group_name); 63 const std::string& group_name);
63 void OnGetV8HeapStats(); 64 void OnGetV8HeapStats();
64 65
65 static bool is_incognito_process_; 66 static bool is_incognito_process_;
66 scoped_ptr<content::ResourceDispatcherDelegate> resource_delegate_; 67 scoped_ptr<content::ResourceDispatcherDelegate> resource_delegate_;
67 ChromeContentRendererClient* client_; 68 ChromeContentRendererClient* client_;
68 // If true, the web cache shall be cleared before the next navigation event. 69 // If true, the web cache shall be cleared before the next navigation event.
69 bool clear_cache_pending_; 70 bool clear_cache_pending_;
70 RendererContentSettingRules content_setting_rules_; 71 RendererContentSettingRules content_setting_rules_;
71 72
72 bool webkit_initialized_; 73 bool webkit_initialized_;
73 size_t pending_cache_min_dead_capacity_; 74 size_t pending_cache_min_dead_capacity_;
74 size_t pending_cache_max_dead_capacity_; 75 size_t pending_cache_max_dead_capacity_;
75 size_t pending_cache_capacity_; 76 size_t pending_cache_capacity_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); 78 DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver);
78 }; 79 };
79 80
80 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_ 81 #endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698