Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_INTENTS_DEFAULT_WEB_INTENT_SERVICE_H_ | |
| 6 #define CHROME_BROWSER_INTENTS_DEFAULT_WEB_INTENT_SERVICE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/string16.h" | |
| 11 | |
| 12 // Holds data related to a default settings for web intents service | |
| 13 // selection. Holds data in a row in the web_intents_defaults table. | |
| 14 // The key for the table is the |action|, |type|, and |url_prefix|. | |
| 15 // These describe the action and type of the web intent for which the | |
| 16 // default is set, and the url prefix (if any) of source pages for | |
| 17 // which the default applies. The main actionable value is the URL | |
| 18 // of the service or extension page handling the intent. The user_date | |
|
groby-ooo-7-16
2012/02/08 23:18:38
nit: |user_date|, |suppression|
Greg Billock
2012/02/08 23:34:06
Done.
| |
| 19 // and suppression fields are provided for more intricate post-fetch | |
| 20 // decisions about whether to use a particular default service. | |
| 21 struct DefaultWebIntentService { | |
| 22 string16 action; | |
|
groby-ooo-7-16
2012/02/08 23:18:38
nit: Please document members.
Greg Billock
2012/02/08 23:34:06
I put this in the struct comment. Given the multi-
groby-ooo-7-16
2012/02/08 23:48:07
I'm not sure what exactly is stored e.g. in |user_
| |
| 23 string16 type; | |
| 24 std::string url_prefix; | |
| 25 int user_date; | |
| 26 int suppression; | |
| 27 std::string service_url; | |
| 28 std::string extension_url; | |
| 29 }; | |
| 30 | |
| 31 #endif // CHROME_BROWSER_INTENTS_DEFAULT_WEB_INTENT_SERVICE_H_ | |
| OLD | NEW |