| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/web_contents/debug_urls.h" | 5 #include "content/browser/web_contents/debug_urls.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "content/browser/gpu/gpu_process_host_ui_shim.h" | 10 #include "content/browser/gpu/gpu_process_host_ui_shim.h" |
| 11 #include "content/browser/ppapi_plugin_process_host.h" | 11 #include "content/browser/ppapi_plugin_process_host.h" |
| 12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 #include "content/public/common/url_constants.h" | 13 #include "content/public/common/url_constants.h" |
| 14 #include "googleurl/src/gurl.h" | |
| 15 #include "ppapi/proxy/ppapi_messages.h" | 14 #include "ppapi/proxy/ppapi_messages.h" |
| 15 #include "url/gurl.h" |
| 16 #include "webkit/plugins/plugin_constants.h" | 16 #include "webkit/plugins/plugin_constants.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 void HandlePpapiFlashDebugURL(const GURL& url) { | 22 void HandlePpapiFlashDebugURL(const GURL& url) { |
| 23 #if defined(ENABLE_PLUGINS) | 23 #if defined(ENABLE_PLUGINS) |
| 24 bool crash = url == GURL(kChromeUIPpapiFlashCrashURL); | 24 bool crash = url == GURL(kChromeUIPpapiFlashCrashURL); |
| 25 | 25 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 url == GURL(kChromeUIPpapiFlashHangURL)) { | 73 url == GURL(kChromeUIPpapiFlashHangURL)) { |
| 74 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, | 74 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, |
| 75 base::Bind(&HandlePpapiFlashDebugURL, url)); | 75 base::Bind(&HandlePpapiFlashDebugURL, url)); |
| 76 return true; | 76 return true; |
| 77 } | 77 } |
| 78 | 78 |
| 79 return false; | 79 return false; |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace content | 82 } // namespace content |
| OLD | NEW |