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

Side by Side Diff: chrome/renderer/permission_request_map.h

Issue 170733004: Avoid sync IPCs for FileSystem API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Async File System permission Created 6 years, 9 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_CHILD_FILEAPI_PERMISSION_REQUEST_MAP_H_
6 #define CONTENT_CHILD_FILEAPI_PERMISSION_REQUEST_MAP_H_
7
8 #include "base/id_map.h"
9
10 namespace blink {
11 class WebPermissionCallbacks;
12 }
13
14 namespace content {
15
16 class PermissionRequestMap {
17 public:
18 static PermissionRequestMap* Get();
19
20 static PermissionRequestMap* GetOrCreate();
21
22 virtual ~PermissionRequestMap();
23
24 int RegisterPermissionCallbacks(
25 const blink::WebPermissionCallbacks& permission_callbacks);
26
27 blink::WebPermissionCallbacks* GetAndUnregisterCallbacks(int callbacks_id);
28
29 private:
30 PermissionRequestMap();
31
32 IDMap<blink::WebPermissionCallbacks> permission_request_map_;
33
34 DISALLOW_COPY_AND_ASSIGN(PermissionRequestMap);
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_CHILD_FILEAPI_PERMISSION_REQUEST_MAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698