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

Side by Side Diff: chrome/browser/chrome_plugin_host.cc

Issue 115870: Reduce header dependencies in net/ (Closed)
Patch Set: Created 11 years, 7 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/chrome_plugin_host.h" 5 #include "chrome/browser/chrome_plugin_host.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 21 matching lines...) Expand all
32 #include "chrome/common/chrome_plugin_lib.h" 32 #include "chrome/common/chrome_plugin_lib.h"
33 #include "chrome/common/chrome_plugin_util.h" 33 #include "chrome/common/chrome_plugin_util.h"
34 #include "chrome/common/chrome_switches.h" 34 #include "chrome/common/chrome_switches.h"
35 #include "chrome/common/gears_api.h" 35 #include "chrome/common/gears_api.h"
36 #include "chrome/common/notification_service.h" 36 #include "chrome/common/notification_service.h"
37 #include "chrome/common/net/url_request_intercept_job.h" 37 #include "chrome/common/net/url_request_intercept_job.h"
38 #include "chrome/common/plugin_messages.h" 38 #include "chrome/common/plugin_messages.h"
39 #include "chrome/common/render_messages.h" 39 #include "chrome/common/render_messages.h"
40 #include "net/base/base64.h" 40 #include "net/base/base64.h"
41 #include "net/base/cookie_monster.h" 41 #include "net/base/cookie_monster.h"
42 #include "net/base/io_buffer.h"
42 #include "net/url_request/url_request_context.h" 43 #include "net/url_request/url_request_context.h"
43 #include "net/url_request/url_request_error_job.h" 44 #include "net/url_request/url_request_error_job.h"
44 #include "third_party/skia/include/core/SkBitmap.h" 45 #include "third_party/skia/include/core/SkBitmap.h"
45 46
46 47
47 using base::TimeDelta; 48 using base::TimeDelta;
48 49
49 // This class manages the interception of network requests. It queries the 50 // This class manages the interception of network requests. It queries the
50 // plugin on every request, and creates an intercept job if the plugin can 51 // plugin on every request, and creates an intercept job if the plugin can
51 // intercept the request. 52 // intercept the request.
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 void CPHandleCommand(int command, CPCommandInterface* data, 809 void CPHandleCommand(int command, CPCommandInterface* data,
809 CPBrowsingContext context) { 810 CPBrowsingContext context) {
810 // Sadly if we try and pass context through, we seem to break cl's little 811 // Sadly if we try and pass context through, we seem to break cl's little
811 // brain trying to compile the Tuple3 ctor. This cast works. 812 // brain trying to compile the Tuple3 ctor. This cast works.
812 int32 context_as_int32 = static_cast<int32>(context); 813 int32 context_as_int32 = static_cast<int32>(context);
813 // Plugins can only be accessed on the IO thread. 814 // Plugins can only be accessed on the IO thread.
814 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, 815 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE,
815 NewRunnableFunction(PluginCommandHandler::HandleCommand, 816 NewRunnableFunction(PluginCommandHandler::HandleCommand,
816 command, data, context_as_int32)); 817 command, data, context_as_int32));
817 } 818 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698