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

Side by Side Diff: content/browser/shared_worker/shared_worker_message_filter.h

Issue 635503002: Replacing the OVERRIDE with override and FINAL with final in content/browser/shared_worker (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 | « no previous file | content/browser/shared_worker/shared_worker_service_impl.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 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_BROWSER_SHARED_WORKER_SHARED_WORKER_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_MESSAGE_FILTER_H_
7 7
8 #include "content/browser/shared_worker/worker_storage_partition.h" 8 #include "content/browser/shared_worker/worker_storage_partition.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/browser_message_filter.h" 10 #include "content/public/browser/browser_message_filter.h"
11 11
12 class GURL; 12 class GURL;
13 struct ViewHostMsg_CreateWorker_Params; 13 struct ViewHostMsg_CreateWorker_Params;
14 14
15 namespace content { 15 namespace content {
16 class MessagePortMessageFilter; 16 class MessagePortMessageFilter;
17 class ResourceContext; 17 class ResourceContext;
18 18
19 // If "enable-embedded-shared-worker" is set this class will be used instead of 19 // If "enable-embedded-shared-worker" is set this class will be used instead of
20 // WorkerMessageFilter. 20 // WorkerMessageFilter.
21 class CONTENT_EXPORT SharedWorkerMessageFilter : public BrowserMessageFilter { 21 class CONTENT_EXPORT SharedWorkerMessageFilter : public BrowserMessageFilter {
22 public: 22 public:
23 SharedWorkerMessageFilter(int render_process_id, 23 SharedWorkerMessageFilter(int render_process_id,
24 ResourceContext* resource_context, 24 ResourceContext* resource_context,
25 const WorkerStoragePartition& partition, 25 const WorkerStoragePartition& partition,
26 MessagePortMessageFilter* message_port_filter); 26 MessagePortMessageFilter* message_port_filter);
27 27
28 // BrowserMessageFilter implementation. 28 // BrowserMessageFilter implementation.
29 virtual void OnChannelClosing() OVERRIDE; 29 virtual void OnChannelClosing() override;
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 30 virtual bool OnMessageReceived(const IPC::Message& message) override;
31 31
32 int GetNextRoutingID(); 32 int GetNextRoutingID();
33 int render_process_id() const { return render_process_id_; } 33 int render_process_id() const { return render_process_id_; }
34 34
35 MessagePortMessageFilter* message_port_message_filter() const { 35 MessagePortMessageFilter* message_port_message_filter() const {
36 return message_port_message_filter_; 36 return message_port_message_filter_;
37 } 37 }
38 38
39 protected: 39 protected:
40 // This is protected, so we can define sub classes for testing. 40 // This is protected, so we can define sub classes for testing.
(...skipping 30 matching lines...) Expand all
71 ResourceContext* const resource_context_; 71 ResourceContext* const resource_context_;
72 const WorkerStoragePartition partition_; 72 const WorkerStoragePartition partition_;
73 MessagePortMessageFilter* const message_port_message_filter_; 73 MessagePortMessageFilter* const message_port_message_filter_;
74 74
75 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedWorkerMessageFilter); 75 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedWorkerMessageFilter);
76 }; 76 };
77 77
78 } // namespace content 78 } // namespace content
79 79
80 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_MESSAGE_FILTER_H_ 80 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/shared_worker/shared_worker_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698