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

Side by Side Diff: content/public/test/mock_render_process_host.h

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Created 4 years, 2 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
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 CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <memory> 10 #include <memory>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool Init() override; 47 bool Init() override;
48 int GetNextRoutingID() override; 48 int GetNextRoutingID() override;
49 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; 49 void AddRoute(int32_t routing_id, IPC::Listener* listener) override;
50 void RemoveRoute(int32_t routing_id) override; 50 void RemoveRoute(int32_t routing_id) override;
51 void AddObserver(RenderProcessHostObserver* observer) override; 51 void AddObserver(RenderProcessHostObserver* observer) override;
52 void RemoveObserver(RenderProcessHostObserver* observer) override; 52 void RemoveObserver(RenderProcessHostObserver* observer) override;
53 void ShutdownForBadMessage() override; 53 void ShutdownForBadMessage() override;
54 void WidgetRestored() override; 54 void WidgetRestored() override;
55 void WidgetHidden() override; 55 void WidgetHidden() override;
56 int VisibleWidgetCount() const override; 56 int VisibleWidgetCount() const override;
57 void AudioStateChanged() override; 57 void AudioStateChanged(bool is_audio_active) override;
58 bool IsForGuestsOnly() const override; 58 bool IsForGuestsOnly() const override;
59 StoragePartition* GetStoragePartition() const override; 59 StoragePartition* GetStoragePartition() const override;
60 virtual void AddWord(const base::string16& word); 60 virtual void AddWord(const base::string16& word);
61 bool Shutdown(int exit_code, bool wait) override; 61 bool Shutdown(int exit_code, bool wait) override;
62 bool FastShutdownIfPossible() override; 62 bool FastShutdownIfPossible() override;
63 bool FastShutdownStarted() const override; 63 bool FastShutdownStarted() const override;
64 base::ProcessHandle GetHandle() const override; 64 base::ProcessHandle GetHandle() const override;
65 bool IsReady() const override; 65 bool IsReady() const override;
66 int GetID() const override; 66 int GetID() const override;
67 bool HasConnection() const override; 67 bool HasConnection() const override;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // for deleting all MockRenderProcessHosts that have not deleted by a test in 188 // for deleting all MockRenderProcessHosts that have not deleted by a test in
189 // the destructor and prevent them from being leaked. 189 // the destructor and prevent them from being leaked.
190 mutable ScopedVector<MockRenderProcessHost> processes_; 190 mutable ScopedVector<MockRenderProcessHost> processes_;
191 191
192 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 192 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
193 }; 193 };
194 194
195 } // namespace content 195 } // namespace content
196 196
197 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 197 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698