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

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

Issue 217021: Change the URL for the plugin finder service.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | « no previous file | no next file » | 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/plugin_process_host.h" 7 #include "chrome/browser/plugin_process_host.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 #if defined(OS_LINUX) 65 #if defined(OS_LINUX)
66 #include "base/gfx/gtk_native_view_id_manager.h" 66 #include "base/gfx/gtk_native_view_id_manager.h"
67 #endif 67 #endif
68 68
69 #if defined(OS_MACOSX) 69 #if defined(OS_MACOSX)
70 #include "chrome/common/plugin_carbon_interpose_constants_mac.h" 70 #include "chrome/common/plugin_carbon_interpose_constants_mac.h"
71 #endif 71 #endif
72 72
73 static const char kDefaultPluginFinderURL[] = 73 static const char kDefaultPluginFinderURL[] =
74 "http://dl.google.com/chrome/plugins/plugins2.xml"; 74 "http://cache.pack.google.com/edgedl/chrome/plugins/plugins2.xml";
75 75
76 #if defined(OS_WIN) 76 #if defined(OS_WIN)
77 77
78 // The PluginDownloadUrlHelper is used to handle one download URL request 78 // The PluginDownloadUrlHelper is used to handle one download URL request
79 // from the plugin. Each download request is handled by a new instance 79 // from the plugin. Each download request is handled by a new instance
80 // of this class. 80 // of this class.
81 class PluginDownloadUrlHelper : public URLRequest::Delegate { 81 class PluginDownloadUrlHelper : public URLRequest::Delegate {
82 static const int kDownloadFileBufferSize = 32768; 82 static const int kDownloadFileBufferSize = 32768;
83 public: 83 public:
84 PluginDownloadUrlHelper(const std::string& download_url, 84 PluginDownloadUrlHelper(const std::string& download_url,
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 DCHECK(MessageLoop::current() == 634 DCHECK(MessageLoop::current() ==
635 ChromeThread::GetMessageLoop(ChromeThread::IO)); 635 ChromeThread::GetMessageLoop(ChromeThread::IO));
636 636
637 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path); 637 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path);
638 if (chrome_plugin) { 638 if (chrome_plugin) {
639 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0])); 639 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0]));
640 uint32 data_len = static_cast<uint32>(data.size()); 640 uint32 data_len = static_cast<uint32>(data.size());
641 chrome_plugin->functions().on_message(data_ptr, data_len); 641 chrome_plugin->functions().on_message(data_ptr, data_len);
642 } 642 }
643 } 643 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698