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

Side by Side Diff: chrome/browser/extensions/api/messaging/extension_message_port.cc

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again 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 | Annotate | Revision Log
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 #include "chrome/browser/extensions/api/messaging/extension_message_port.h" 5 #include "chrome/browser/extensions/api/messaging/extension_message_port.h"
6 6
7 #include "chrome/browser/extensions/extension_host.h" 7 #include "chrome/browser/extensions/extension_host.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/extensions/extension_messages.h"
10 #include "content/public/browser/render_process_host.h" 9 #include "content/public/browser/render_process_host.h"
11 #include "extensions/browser/extension_system.h" 10 #include "extensions/browser/extension_system.h"
12 #include "extensions/browser/process_manager.h" 11 #include "extensions/browser/process_manager.h"
12 #include "extensions/common/extension_messages.h"
13 #include "extensions/common/manifest_handlers/background_info.h" 13 #include "extensions/common/manifest_handlers/background_info.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 ExtensionMessagePort::ExtensionMessagePort(content::RenderProcessHost* process, 17 ExtensionMessagePort::ExtensionMessagePort(content::RenderProcessHost* process,
18 int routing_id, 18 int routing_id,
19 const std::string& extension_id) 19 const std::string& extension_id)
20 : process_(process), 20 : process_(process),
21 routing_id_(routing_id), 21 routing_id_(routing_id),
22 extension_id_(extension_id), 22 extension_id_(extension_id),
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 ExtensionHost* host = pm->GetBackgroundHostForExtension(extension_id_); 75 ExtensionHost* host = pm->GetBackgroundHostForExtension(extension_id_);
76 if (host && host == background_host_ptr_) 76 if (host && host == background_host_ptr_)
77 pm->DecrementLazyKeepaliveCount(host->extension()); 77 pm->DecrementLazyKeepaliveCount(host->extension());
78 } 78 }
79 79
80 content::RenderProcessHost* ExtensionMessagePort::GetRenderProcessHost() { 80 content::RenderProcessHost* ExtensionMessagePort::GetRenderProcessHost() {
81 return process_; 81 return process_;
82 } 82 }
83 83
84 } // namespace extensions 84 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/execute_code_function.cc ('k') | chrome/browser/extensions/api/messaging/message_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698