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

Side by Side Diff: content/child/quota_message_filter.h

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « content/child/quota_dispatcher.cc ('k') | content/child/resource_dispatcher.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_QUOTA_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_CHILD_QUOTA_MESSAGE_FILTER_H_
6 #define CONTENT_CHILD_QUOTA_MESSAGE_FILTER_H_ 6 #define CONTENT_CHILD_QUOTA_MESSAGE_FILTER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // Generates a new request_id, registers { request_id, thread_id } map to 26 // Generates a new request_id, registers { request_id, thread_id } map to
27 // the message filter and returns the request_id. 27 // the message filter and returns the request_id.
28 // This method can be called on any thread. 28 // This method can be called on any thread.
29 int GenerateRequestID(int thread_id); 29 int GenerateRequestID(int thread_id);
30 30
31 // Clears all requests from the thread_id. 31 // Clears all requests from the thread_id.
32 void ClearThreadRequests(int thread_id); 32 void ClearThreadRequests(int thread_id);
33 33
34 protected: 34 protected:
35 virtual ~QuotaMessageFilter(); 35 ~QuotaMessageFilter() override;
36 36
37 private: 37 private:
38 // ChildMessageFilter implementation: 38 // ChildMessageFilter implementation:
39 virtual base::TaskRunner* OverrideTaskRunnerForMessage( 39 base::TaskRunner* OverrideTaskRunnerForMessage(
40 const IPC::Message& msg) override; 40 const IPC::Message& msg) override;
41 virtual bool OnMessageReceived(const IPC::Message& msg) override; 41 bool OnMessageReceived(const IPC::Message& msg) override;
42 42
43 typedef std::map<int, int> RequestIdToThreadId; 43 typedef std::map<int, int> RequestIdToThreadId;
44 44
45 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_; 45 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_;
46 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 46 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
47 47
48 base::Lock request_id_map_lock_; 48 base::Lock request_id_map_lock_;
49 RequestIdToThreadId request_id_map_; 49 RequestIdToThreadId request_id_map_;
50 int next_request_id_; 50 int next_request_id_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(QuotaMessageFilter); 52 DISALLOW_COPY_AND_ASSIGN(QuotaMessageFilter);
53 }; 53 };
54 54
55 } // namespace content 55 } // namespace content
56 56
57 #endif // CONTENT_CHILD_QUOTA_MESSAGE_FILTER_H_ 57 #endif // CONTENT_CHILD_QUOTA_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/child/quota_dispatcher.cc ('k') | content/child/resource_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698