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

Side by Side Diff: content/child/navigator_connect/navigator_connect_provider.h

Issue 827953002: Make NavigatorConnectProvider finalize its owned callback objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_PROVIDER_H_ 5 #ifndef CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_PROVIDER_H_
6 #define CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_PROVIDER_H_ 6 #define CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_PROVIDER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 private: 63 private:
64 void OnConnectResult(int thread_id, int request_id, bool allow_connect); 64 void OnConnectResult(int thread_id, int request_id, bool allow_connect);
65 65
66 // WorkerTaskRunner::Observer implementation. 66 // WorkerTaskRunner::Observer implementation.
67 void OnWorkerRunLoopStopped() override; 67 void OnWorkerRunLoopStopped() override;
68 68
69 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 69 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
70 scoped_refptr<base::SingleThreadTaskRunner> main_loop_; 70 scoped_refptr<base::SingleThreadTaskRunner> main_loop_;
71 typedef blink::WebCallbacks<void, void> ConnectCallback; 71 typedef blink::WebCallbacks<void, void> ConnectCallback;
72 IDMap<ConnectCallback> requests_; 72 IDMap<ConnectCallback, IDMapOwnPointer> requests_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(NavigatorConnectProvider); 74 DISALLOW_COPY_AND_ASSIGN(NavigatorConnectProvider);
75 }; 75 };
76 76
77 } // namespace content 77 } // namespace content
78 78
79 #endif // CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_PROVIDER_H_ 79 #endif // CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698