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

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

Issue 243076: Move the JPEG and PNG codecs from base/gfx to app/gfx/codec. Move the classes... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/gfx/png_encoder.h"
14 #include "base/histogram.h" 13 #include "base/histogram.h"
15 #include "base/message_loop.h" 14 #include "base/message_loop.h"
16 #include "base/path_service.h" 15 #include "base/path_service.h"
17 #include "base/perftimer.h" 16 #include "base/perftimer.h"
18 #include "base/singleton.h" 17 #include "base/singleton.h"
19 #include "base/string_util.h" 18 #include "base/string_util.h"
20 #include "chrome/browser/browser_list.h" 19 #include "chrome/browser/browser_list.h"
21 #include "chrome/browser/chrome_plugin_browsing_context.h" 20 #include "chrome/browser/chrome_plugin_browsing_context.h"
22 #include "chrome/browser/chrome_thread.h" 21 #include "chrome/browser/chrome_thread.h"
23 #include "chrome/browser/dom_ui/html_dialog_ui.h" 22 #include "chrome/browser/dom_ui/html_dialog_ui.h"
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 void CPHandleCommand(int command, CPCommandInterface* data, 816 void CPHandleCommand(int command, CPCommandInterface* data,
818 CPBrowsingContext context) { 817 CPBrowsingContext context) {
819 // Sadly if we try and pass context through, we seem to break cl's little 818 // Sadly if we try and pass context through, we seem to break cl's little
820 // brain trying to compile the Tuple3 ctor. This cast works. 819 // brain trying to compile the Tuple3 ctor. This cast works.
821 int32 context_as_int32 = static_cast<int32>(context); 820 int32 context_as_int32 = static_cast<int32>(context);
822 // Plugins can only be accessed on the IO thread. 821 // Plugins can only be accessed on the IO thread.
823 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, 822 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE,
824 NewRunnableFunction(PluginCommandHandler::HandleCommand, 823 NewRunnableFunction(PluginCommandHandler::HandleCommand,
825 command, data, context_as_int32)); 824 command, data, context_as_int32));
826 } 825 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698