summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_proxy.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-09 18:55:35 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-09 18:55:35 +0000
commit9c1e5f0669ef6904b864392d8c6c489d46935250 (patch)
tree0464406267f8fda9d3178de1797e5d619006071c /chrome/renderer/webplugin_delegate_proxy.cc
parent2aa3f645ea5342deee58ac844da3887eaa04ec75 (diff)
downloadchromium_src-9c1e5f0669ef6904b864392d8c6c489d46935250.zip
chromium_src-9c1e5f0669ef6904b864392d8c6c489d46935250.tar.gz
chromium_src-9c1e5f0669ef6904b864392d8c6c489d46935250.tar.bz2
Remove unused ATL headers.
BUG=5027 TEST=none Review URL: http://codereview.chromium.org/194051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_proxy.cc')
-rw-r--r--chrome/renderer/webplugin_delegate_proxy.cc21
1 files changed, 9 insertions, 12 deletions
diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc
index 2c728d7..f049fe9 100644
--- a/chrome/renderer/webplugin_delegate_proxy.cc
+++ b/chrome/renderer/webplugin_delegate_proxy.cc
@@ -4,15 +4,12 @@
#include "chrome/renderer/webplugin_delegate_proxy.h"
-#include "build/build_config.h"
-
-#if defined(OS_WIN)
-#include <atlbase.h>
-#endif
+#include <algorithm>
#include "app/gfx/canvas.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
+#include "base/basictypes.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/ref_counted.h"
@@ -117,7 +114,7 @@ class ResourceClientProxy : public webkit_glue::WebPluginResourceClient {
void DidReceiveData(const char* buffer, int length, int data_offset) {
DCHECK(channel_ != NULL);
- DCHECK(length > 0);
+ DCHECK_GT(length, 0);
std::vector<char> data;
data.resize(static_cast<size_t>(length));
memcpy(&data.front(), buffer, length);
@@ -216,10 +213,10 @@ void WebPluginDelegateProxy::PluginDestroyed() {
}
bool WebPluginDelegateProxy::Initialize(const GURL& url,
- const std::vector<std::string>& arg_names,
- const std::vector<std::string>& arg_values,
- webkit_glue::WebPlugin* plugin,
- bool load_manually) {
+ const std::vector<std::string>& arg_names,
+ const std::vector<std::string>& arg_values,
+ webkit_glue::WebPlugin* plugin,
+ bool load_manually) {
IPC::ChannelHandle channel_handle;
WebPluginInfo info;
if (!RenderThread::current()->Send(new ViewHostMsg_OpenChannelToPlugin(
@@ -323,7 +320,7 @@ void WebPluginDelegateProxy::DidReceiveManualResponse(
void WebPluginDelegateProxy::DidReceiveManualData(const char* buffer,
int length) {
- DCHECK(length > 0);
+ DCHECK_GT(length, 0);
std::vector<char> data;
data.resize(static_cast<size_t>(length));
memcpy(&data.front(), buffer, length);
@@ -436,7 +433,7 @@ void WebPluginDelegateProxy::UpdateGeometry(const gfx::Rect& window_rect,
}
}
- IPC::Message* msg;
+ IPC::Message* msg;
#if defined (OS_WIN)
std::wstring filename = StringToLowerASCII(info_.path.BaseName().value());
if (info_.name.find(L"Windows Media Player") != std::wstring::npos) {