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

Side by Side Diff: chrome/browser/extensions/api/messaging/native_message_port.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGE_PORT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGE_PORT_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGE_PORT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGE_PORT_H_
7 7
8 #include "chrome/browser/extensions/api/messaging/message_service.h" 8 #include "chrome/browser/extensions/api/messaging/message_service.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 class NativeMessageProcessHost; 11 class NativeMessageProcessHost;
12 12
13 // A port that manages communication with a native application. 13 // A port that manages communication with a native application.
14 class NativeMessagePort : public MessageService::MessagePort { 14 class NativeMessagePort : public MessageService::MessagePort {
15 public: 15 public:
16 // Takes ownership of |native_process|. 16 // Takes ownership of |native_process|.
17 explicit NativeMessagePort(NativeMessageProcessHost* native_process); 17 explicit NativeMessagePort(NativeMessageProcessHost* native_process);
18 virtual ~NativeMessagePort(); 18 virtual ~NativeMessagePort();
19 virtual void DispatchOnMessage(const Message& message, 19 virtual void DispatchOnMessage(const Message& message,
20 int target_port_id) OVERRIDE; 20 int target_port_id) override;
21 21
22 private: 22 private:
23 NativeMessageProcessHost* native_process_; 23 NativeMessageProcessHost* native_process_;
24 }; 24 };
25 25
26 } // namespace extensions 26 } // namespace extensions
27 27
28 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGE_PORT_H_ 28 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGE_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698