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

Side by Side Diff: chrome/plugin/webplugin_proxy.cc

Issue 259047: Move classes depending on Skia out of base/gfx and into app/gfx. Rename... (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
« no previous file with comments | « chrome/browser/views/options/options_group_view.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/plugin/webplugin_proxy.h" 5 #include "chrome/plugin/webplugin_proxy.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "app/gfx/canvas.h" 9 #include "app/gfx/canvas.h"
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include "app/gfx/gdi_util.h"
11 #include "app/win_util.h" 12 #include "app/win_util.h"
12 #endif 13 #endif
13 #include "base/gfx/blit.h" 14 #include "app/gfx/blit.h"
14 #if defined(OS_MACOSX) 15 #if defined(OS_MACOSX)
15 #include "base/mac_util.h" 16 #include "base/mac_util.h"
16 #endif 17 #endif
17 #include "base/scoped_handle.h" 18 #include "base/scoped_handle.h"
18 #include "base/shared_memory.h" 19 #include "base/shared_memory.h"
19 #include "base/singleton.h" 20 #include "base/singleton.h"
20 #include "build/build_config.h" 21 #include "build/build_config.h"
21 #include "chrome/common/child_process_logging.h" 22 #include "chrome/common/child_process_logging.h"
22 #include "chrome/common/plugin_messages.h" 23 #include "chrome/common/plugin_messages.h"
23 #include "chrome/common/url_constants.h" 24 #include "chrome/common/url_constants.h"
24 #include "chrome/plugin/npobject_proxy.h" 25 #include "chrome/plugin/npobject_proxy.h"
25 #include "chrome/plugin/npobject_util.h" 26 #include "chrome/plugin/npobject_util.h"
26 #include "chrome/plugin/plugin_channel.h" 27 #include "chrome/plugin/plugin_channel.h"
27 #include "chrome/plugin/plugin_thread.h" 28 #include "chrome/plugin/plugin_thread.h"
28 #include "chrome/plugin/webplugin_delegate_stub.h" 29 #include "chrome/plugin/webplugin_delegate_stub.h"
29 #include "skia/ext/platform_device.h" 30 #include "skia/ext/platform_device.h"
30 #include "webkit/api/public/WebBindings.h" 31 #include "webkit/api/public/WebBindings.h"
31 #include "webkit/glue/plugins/webplugin_delegate_impl.h" 32 #include "webkit/glue/plugins/webplugin_delegate_impl.h"
32 33
33 #if defined(OS_WIN)
34 #include "base/gfx/gdi_util.h"
35 #endif
36
37 using WebKit::WebBindings; 34 using WebKit::WebBindings;
38 using webkit_glue::WebPluginResourceClient; 35 using webkit_glue::WebPluginResourceClient;
39 36
40 typedef std::map<CPBrowsingContext, WebPluginProxy*> ContextMap; 37 typedef std::map<CPBrowsingContext, WebPluginProxy*> ContextMap;
41 static ContextMap& GetContextMap() { 38 static ContextMap& GetContextMap() {
42 return *Singleton<ContextMap>::get(); 39 return *Singleton<ContextMap>::get();
43 } 40 }
44 41
45 WebPluginProxy::WebPluginProxy( 42 WebPluginProxy::WebPluginProxy(
46 PluginChannel* channel, 43 PluginChannel* channel,
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 while (index != resource_clients_.end()) { 622 while (index != resource_clients_.end()) {
626 WebPluginResourceClient* client = (*index).second; 623 WebPluginResourceClient* client = (*index).second;
627 624
628 if (client == resource_client) { 625 if (client == resource_client) {
629 resource_clients_.erase(index++); 626 resource_clients_.erase(index++);
630 } else { 627 } else {
631 index++; 628 index++;
632 } 629 }
633 } 630 }
634 } 631 }
OLDNEW
« no previous file with comments | « chrome/browser/views/options/options_group_view.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698