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

Side by Side Diff: chrome/test/base/testing_profile.h

Issue 38043004: Cancel MIDI permission request infobar on MIDIAccess stop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delay "requests_.Remove(it.GetCurrentKey());" until we're done using |it|. Created 7 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
« no previous file with comments | « chrome/browser/ui/app_list/test/fake_profile.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TEST_BASE_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 int renderer_child_id) OVERRIDE; 256 int renderer_child_id) OVERRIDE;
257 virtual net::URLRequestContextGetter* 257 virtual net::URLRequestContextGetter*
258 GetRequestContextForExtensions() OVERRIDE; 258 GetRequestContextForExtensions() OVERRIDE;
259 virtual net::URLRequestContextGetter* 259 virtual net::URLRequestContextGetter*
260 GetMediaRequestContextForStoragePartition( 260 GetMediaRequestContextForStoragePartition(
261 const base::FilePath& partition_path, 261 const base::FilePath& partition_path,
262 bool in_memory) OVERRIDE; 262 bool in_memory) OVERRIDE;
263 virtual void RequestMIDISysExPermission( 263 virtual void RequestMIDISysExPermission(
264 int render_process_id, 264 int render_process_id,
265 int render_view_id, 265 int render_view_id,
266 int bridge_id,
266 const GURL& requesting_frame, 267 const GURL& requesting_frame,
267 const MIDISysExPermissionCallback& callback) OVERRIDE; 268 const MIDISysExPermissionCallback& callback) OVERRIDE;
269 virtual void CancelMIDISysExPermissionRequest(
270 int render_process_id,
271 int render_view_id,
272 int bridge_id,
273 const GURL& requesting_frame) OVERRIDE;
268 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 274 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
269 const base::FilePath& partition_path, 275 const base::FilePath& partition_path,
270 bool in_memory, 276 bool in_memory,
271 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; 277 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE;
272 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 278 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
273 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 279 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
274 virtual std::wstring GetName(); 280 virtual std::wstring GetName();
275 virtual void SetName(const std::wstring& name) {} 281 virtual void SetName(const std::wstring& name) {}
276 virtual std::wstring GetID(); 282 virtual std::wstring GetID();
277 virtual void SetID(const std::wstring& id); 283 virtual void SetID(const std::wstring& id);
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 395
390 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; 396 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_;
391 397
392 // Weak pointer to a delegate for indicating that a profile was created. 398 // Weak pointer to a delegate for indicating that a profile was created.
393 Delegate* delegate_; 399 Delegate* delegate_;
394 400
395 std::string profile_name_; 401 std::string profile_name_;
396 }; 402 };
397 403
398 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 404 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/test/fake_profile.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698