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

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

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 #include "content/public/test/mock_render_process_host.h" 5 #include "content/public/test/mock_render_process_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 void MockRenderProcessHost::WidgetRestored() { 139 void MockRenderProcessHost::WidgetRestored() {
140 } 140 }
141 141
142 void MockRenderProcessHost::WidgetHidden() { 142 void MockRenderProcessHost::WidgetHidden() {
143 } 143 }
144 144
145 int MockRenderProcessHost::VisibleWidgetCount() const { 145 int MockRenderProcessHost::VisibleWidgetCount() const {
146 return 1; 146 return 1;
147 } 147 }
148 148
149 void MockRenderProcessHost::AudioStateChanged() {} 149 void MockRenderProcessHost::AudioStateChanged(bool is_audio_active) {}
150 150
151 bool MockRenderProcessHost::IsForGuestsOnly() const { 151 bool MockRenderProcessHost::IsForGuestsOnly() const {
152 return is_for_guests_only_; 152 return is_for_guests_only_;
153 } 153 }
154 154
155 StoragePartition* MockRenderProcessHost::GetStoragePartition() const { 155 StoragePartition* MockRenderProcessHost::GetStoragePartition() const {
156 return BrowserContext::GetDefaultStoragePartition(browser_context_); 156 return BrowserContext::GetDefaultStoragePartition(browser_context_);
157 } 157 }
158 158
159 void MockRenderProcessHost::AddWord(const base::string16& word) { 159 void MockRenderProcessHost::AddWord(const base::string16& word) {
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 385 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
386 it != processes_.end(); ++it) { 386 it != processes_.end(); ++it) {
387 if (*it == host) { 387 if (*it == host) {
388 processes_.weak_erase(it); 388 processes_.weak_erase(it);
389 break; 389 break;
390 } 390 }
391 } 391 }
392 } 392 }
393 393
394 } // namespace content 394 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698