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

Side by Side Diff: content/public/renderer/render_process_observer.h

Issue 8574012: Schedule idle handler based on CPU usage. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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) 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 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_PROCESS_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_PROCESS_OBSERVER_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_PROCESS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_PROCESS_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 13 matching lines...) Expand all
24 24
25 // Allows filtering of control messages. 25 // Allows filtering of control messages.
26 virtual bool OnControlMessageReceived(const IPC::Message& message); 26 virtual bool OnControlMessageReceived(const IPC::Message& message);
27 27
28 // Notification that the render process is shutting down. 28 // Notification that the render process is shutting down.
29 virtual void OnRenderProcessShutdown() {} 29 virtual void OnRenderProcessShutdown() {}
30 30
31 // Called right after the WebKit API is initialized. 31 // Called right after the WebKit API is initialized.
32 virtual void WebKitInitialized() {} 32 virtual void WebKitInitialized() {}
33 33
34 virtual void IdleNotification() {}
35
36 private: 34 private:
37 DISALLOW_COPY_AND_ASSIGN(RenderProcessObserver); 35 DISALLOW_COPY_AND_ASSIGN(RenderProcessObserver);
38 }; 36 };
39 37
40 } // namespace content 38 } // namespace content
41 39
42 #endif // CONTENT_PUBLIC_RENDERER_RENDER_PROCESS_OBSERVER_H_ 40 #endif // CONTENT_PUBLIC_RENDERER_RENDER_PROCESS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698