| OLD | NEW |
| 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/renderer_host/render_view_host.h" | 5 #include "chrome/browser/renderer_host/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "chrome/browser/tab_contents/tab_contents.h" | 30 #include "chrome/browser/tab_contents/tab_contents.h" |
| 31 #include "chrome/common/bindings_policy.h" | 31 #include "chrome/common/bindings_policy.h" |
| 32 #include "chrome/common/notification_service.h" | 32 #include "chrome/common/notification_service.h" |
| 33 #include "chrome/common/notification_type.h" | 33 #include "chrome/common/notification_type.h" |
| 34 #include "chrome/common/render_messages.h" | 34 #include "chrome/common/render_messages.h" |
| 35 #include "chrome/common/result_codes.h" | 35 #include "chrome/common/result_codes.h" |
| 36 #include "chrome/common/chrome_switches.h" | 36 #include "chrome/common/chrome_switches.h" |
| 37 #include "chrome/common/thumbnail_score.h" | 37 #include "chrome/common/thumbnail_score.h" |
| 38 #include "chrome/common/url_constants.h" | 38 #include "chrome/common/url_constants.h" |
| 39 #include "net/base/net_util.h" | 39 #include "net/base/net_util.h" |
| 40 #include "skia/include/SkBitmap.h" | 40 #include "third_party/skia/include/core/SkBitmap.h" |
| 41 #include "webkit/api/public/WebFindOptions.h" | 41 #include "webkit/api/public/WebFindOptions.h" |
| 42 #include "webkit/glue/autofill_form.h" | 42 #include "webkit/glue/autofill_form.h" |
| 43 | 43 |
| 44 using base::TimeDelta; | 44 using base::TimeDelta; |
| 45 using WebKit::WebConsoleMessage; | 45 using WebKit::WebConsoleMessage; |
| 46 using WebKit::WebFindOptions; | 46 using WebKit::WebFindOptions; |
| 47 using WebKit::WebInputEvent; | 47 using WebKit::WebInputEvent; |
| 48 | 48 |
| 49 namespace { | 49 namespace { |
| 50 | 50 |
| (...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1395 const std::string& response) { | 1395 const std::string& response) { |
| 1396 Send(new ViewMsg_ExtensionResponse(routing_id(), callback_id, response)); | 1396 Send(new ViewMsg_ExtensionResponse(routing_id(), callback_id, response)); |
| 1397 } | 1397 } |
| 1398 | 1398 |
| 1399 void RenderViewHost::OnExtensionPostMessage( | 1399 void RenderViewHost::OnExtensionPostMessage( |
| 1400 int port_id, const std::string& message) { | 1400 int port_id, const std::string& message) { |
| 1401 URLRequestContext* context = process()->profile()->GetRequestContext(); | 1401 URLRequestContext* context = process()->profile()->GetRequestContext(); |
| 1402 ExtensionMessageService::GetInstance(context)-> | 1402 ExtensionMessageService::GetInstance(context)-> |
| 1403 PostMessageFromRenderer(port_id, message); | 1403 PostMessageFromRenderer(port_id, message); |
| 1404 } | 1404 } |
| OLD | NEW |