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: content/child/permissions/permission_dispatcher_thread_proxy.h

Issue 1260193009: renderer: implement multiple permission requesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissions-request-multiple
Patch Set: Split off all browser sections Created 5 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CHILD_PERMISSIONS_PERMISSION_DISPATCHER_THREAD_PROXY_H_ 5 #ifndef CONTENT_CHILD_PERMISSIONS_PERMISSION_DISPATCHER_THREAD_PROXY_H_
6 #define CONTENT_CHILD_PERMISSIONS_PERMISSION_DISPATCHER_THREAD_PROXY_H_ 6 #define CONTENT_CHILD_PERMISSIONS_PERMISSION_DISPATCHER_THREAD_PROXY_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 21 matching lines...) Expand all
32 base::SingleThreadTaskRunner* main_thread_task_runner, 32 base::SingleThreadTaskRunner* main_thread_task_runner,
33 PermissionDispatcher* permissions_dispatcher); 33 PermissionDispatcher* permissions_dispatcher);
34 34
35 // blink::WebPermissionClient implementation. 35 // blink::WebPermissionClient implementation.
36 virtual void queryPermission(blink::WebPermissionType type, 36 virtual void queryPermission(blink::WebPermissionType type,
37 const blink::WebURL& origin, 37 const blink::WebURL& origin,
38 blink::WebPermissionCallback* callback); 38 blink::WebPermissionCallback* callback);
39 virtual void requestPermission(blink::WebPermissionType type, 39 virtual void requestPermission(blink::WebPermissionType type,
40 const blink::WebURL& origin, 40 const blink::WebURL& origin,
41 blink::WebPermissionCallback* callback); 41 blink::WebPermissionCallback* callback);
42 virtual void requestPermissions(
43 const blink::WebVector<blink::WebPermissionType>& types,
44 const blink::WebURL& origin,
45 blink::WebPermissionsCallback* callback);
42 virtual void revokePermission(blink::WebPermissionType type, 46 virtual void revokePermission(blink::WebPermissionType type,
43 const blink::WebURL& origin, 47 const blink::WebURL& origin,
44 blink::WebPermissionCallback* callback); 48 blink::WebPermissionCallback* callback);
45 virtual void startListening(blink::WebPermissionType type, 49 virtual void startListening(blink::WebPermissionType type,
46 const blink::WebURL& origin, 50 const blink::WebURL& origin,
47 blink::WebPermissionObserver* observer); 51 blink::WebPermissionObserver* observer);
48 virtual void stopListening(blink::WebPermissionObserver* observer); 52 virtual void stopListening(blink::WebPermissionObserver* observer);
49 53
50 // WorkerTaskRunner::Observer implementation. 54 // WorkerTaskRunner::Observer implementation.
51 void OnWorkerRunLoopStopped() override; 55 void OnWorkerRunLoopStopped() override;
(...skipping 13 matching lines...) Expand all
65 69
66 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 70 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
67 PermissionDispatcher* permission_dispatcher_; 71 PermissionDispatcher* permission_dispatcher_;
68 72
69 DISALLOW_COPY_AND_ASSIGN(PermissionDispatcherThreadProxy); 73 DISALLOW_COPY_AND_ASSIGN(PermissionDispatcherThreadProxy);
70 }; 74 };
71 75
72 } // namespace content 76 } // namespace content
73 77
74 #endif // CONTENT_CHILD_PERMISSIONS_PERMISSION_DISPATCHER_THREAD_PROXY_H_ 78 #endif // CONTENT_CHILD_PERMISSIONS_PERMISSION_DISPATCHER_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698