| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ |
| 6 #define CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ | 6 #define CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // "text", and "url", with an empty string, for forwards compatibility. | 41 // "text", and "url", with an empty string, for forwards compatibility. |
| 42 // Returns false, if there are badly nested placeholders. | 42 // Returns false, if there are badly nested placeholders. |
| 43 // This includes any case in which two "{" occur before a "}", or a "}" | 43 // This includes any case in which two "{" occur before a "}", or a "}" |
| 44 // occurs with no preceding "{". | 44 // occurs with no preceding "{". |
| 45 static bool ReplacePlaceholders(base::StringPiece url_template, | 45 static bool ReplacePlaceholders(base::StringPiece url_template, |
| 46 base::StringPiece title, | 46 base::StringPiece title, |
| 47 base::StringPiece text, | 47 base::StringPiece text, |
| 48 const GURL& share_url, | 48 const GURL& share_url, |
| 49 std::string* url_template_filled); | 49 std::string* url_template_filled); |
| 50 | 50 |
| 51 void OnPickerClosed(const std::string& title, |
| 52 const std::string& text, |
| 53 const GURL& share_url, |
| 54 const ShareCallback& callback, |
| 55 bool picked); |
| 56 |
| 51 DISALLOW_COPY_AND_ASSIGN(ShareServiceImpl); | 57 DISALLOW_COPY_AND_ASSIGN(ShareServiceImpl); |
| 52 }; | 58 }; |
| 53 | 59 |
| 54 #endif // CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ | 60 #endif // CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ |
| OLD | NEW |