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

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

Issue 23257005: Move Feature and Manifest to top-level extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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/native_message_process_host.h" 5 #include "chrome/browser/extensions/api/messaging/native_message_process_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
11 #include "base/threading/sequenced_worker_pool.h" 11 #include "base/threading/sequenced_worker_pool.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/extensions/api/messaging/native_messaging_host_manifest .h" 13 #include "chrome/browser/extensions/api/messaging/native_messaging_host_manifest .h"
14 #include "chrome/browser/extensions/api/messaging/native_process_launcher.h" 14 #include "chrome/browser/extensions/api/messaging/native_process_launcher.h"
15 #include "chrome/common/chrome_version_info.h" 15 #include "chrome/common/chrome_version_info.h"
16 #include "chrome/common/extensions/features/feature.h"
17 #include "extensions/common/constants.h" 16 #include "extensions/common/constants.h"
17 #include "extensions/common/features/feature.h"
18 #include "net/base/file_stream.h" 18 #include "net/base/file_stream.h"
19 #include "net/base/io_buffer.h" 19 #include "net/base/io_buffer.h"
20 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
21 #include "net/base/net_util.h" 21 #include "net/base/net_util.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
24 namespace { 24 namespace {
25 25
26 // Maximum message size in bytes for messages received from Native Messaging 26 // Maximum message size in bytes for messages received from Native Messaging
27 // hosts. Message size is limited mainly to prevent Chrome from crashing when 27 // hosts. Message size is limited mainly to prevent Chrome from crashing when
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 closed_ = true; 341 closed_ = true;
342 read_stream_.reset(); 342 read_stream_.reset();
343 write_stream_.reset(); 343 write_stream_.reset();
344 content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE, 344 content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
345 base::Bind(&Client::CloseChannel, weak_client_ui_, 345 base::Bind(&Client::CloseChannel, weak_client_ui_,
346 destination_port_, error_message)); 346 destination_port_, error_message));
347 } 347 }
348 } 348 }
349 349
350 } // namespace extensions 350 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698