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

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_impl.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
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_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; 94 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
95 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 95 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
96 int renderer_child_id) OVERRIDE; 96 int renderer_child_id) OVERRIDE;
97 virtual net::URLRequestContextGetter* 97 virtual net::URLRequestContextGetter*
98 GetMediaRequestContextForStoragePartition( 98 GetMediaRequestContextForStoragePartition(
99 const base::FilePath& partition_path, 99 const base::FilePath& partition_path,
100 bool in_memory) OVERRIDE; 100 bool in_memory) OVERRIDE;
101 virtual void RequestMIDISysExPermission( 101 virtual void RequestMIDISysExPermission(
102 int render_process_id, 102 int render_process_id,
103 int render_view_id, 103 int render_view_id,
104 int bridge_id,
104 const GURL& requesting_frame, 105 const GURL& requesting_frame,
105 const MIDISysExPermissionCallback& callback) OVERRIDE; 106 const MIDISysExPermissionCallback& callback) OVERRIDE;
107 virtual void CancelMIDISysExPermissionRequest(
108 int render_process_id,
109 int render_view_id,
110 int bridge_id,
111 const GURL& requesting_frame) OVERRIDE;
106 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 112 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
107 virtual content::GeolocationPermissionContext* 113 virtual content::GeolocationPermissionContext*
108 GetGeolocationPermissionContext() OVERRIDE; 114 GetGeolocationPermissionContext() OVERRIDE;
109 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 115 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
110 116
111 private: 117 private:
112 FRIEND_TEST_ALL_PREFIXES(OffTheRecordProfileImplTest, GetHostZoomMap); 118 FRIEND_TEST_ALL_PREFIXES(OffTheRecordProfileImplTest, GetHostZoomMap);
113 void InitHostZoomMap(); 119 void InitHostZoomMap();
114 120
115 #if defined(OS_ANDROID) || defined(OS_IOS) 121 #if defined(OS_ANDROID) || defined(OS_IOS)
(...skipping 20 matching lines...) Expand all
136 base::FilePath last_selected_directory_; 142 base::FilePath last_selected_directory_;
137 143
138 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 144 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
139 145
140 scoped_ptr<content::HostZoomMap::Subscription> zoom_subscription_; 146 scoped_ptr<content::HostZoomMap::Subscription> zoom_subscription_;
141 147
142 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 148 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
143 }; 149 };
144 150
145 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 151 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/chrome_midi_permission_context.cc ('k') | chrome/browser/profiles/off_the_record_profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698