OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/platform_util.h" | 5 #include "chrome/browser/platform_util.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
11 #include "base/task.h" | 11 #include "base/task.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/browser_list.h" | 13 #include "chrome/browser/browser_list.h" |
14 #include "chrome/browser/tabs/tab_strip_model.h" | 14 #include "chrome/browser/tabs/tab_strip_model.h" |
15 #include "chrome/browser/ui/webui/filebrowse_ui.h" | 15 #include "chrome/browser/ui/webui/filebrowse_ui.h" |
16 #include "chrome/browser/ui/webui/mediaplayer_ui.h" | 16 #include "chrome/browser/ui/webui/mediaplayer_ui.h" |
17 #include "chrome/common/process_watcher.h" | |
18 #include "content/browser/browser_thread.h" | 17 #include "content/browser/browser_thread.h" |
| 18 #include "content/common/process_watcher.h" |
19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
22 | 22 |
23 class Profile; | 23 class Profile; |
24 | 24 |
25 namespace platform_util { | 25 namespace platform_util { |
26 | 26 |
27 static const std::string kGmailComposeUrl = | 27 static const std::string kGmailComposeUrl = |
28 "https://mail.google.com/mail/?extsrc=mailto&url="; | 28 "https://mail.google.com/mail/?extsrc=mailto&url="; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void OpenExternal(const GURL& url) { | 116 void OpenExternal(const GURL& url) { |
117 if (url.SchemeIs("mailto")) { | 117 if (url.SchemeIs("mailto")) { |
118 std::string string_url = kGmailComposeUrl; | 118 std::string string_url = kGmailComposeUrl; |
119 string_url.append(url.spec()); | 119 string_url.append(url.spec()); |
120 BrowserThread::PostTask( | 120 BrowserThread::PostTask( |
121 BrowserThread::UI, FROM_HERE, NewRunnableFunction(OpenURL, string_url)); | 121 BrowserThread::UI, FROM_HERE, NewRunnableFunction(OpenURL, string_url)); |
122 } | 122 } |
123 } | 123 } |
124 | 124 |
125 } // namespace platform_util | 125 } // namespace platform_util |
OLD | NEW |