| 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 "chrome/browser/intents/default_web_intent_service.h" | 5 #include "chrome/browser/intents/default_web_intent_service.h" |
| 6 | 6 |
| 7 DefaultWebIntentService::DefaultWebIntentService() | 7 DefaultWebIntentService::DefaultWebIntentService() |
| 8 : url_pattern(URLPattern::SCHEME_ALL, URLPattern::kAllUrlsPattern), | 8 : url_pattern(URLPattern::SCHEME_ALL, URLPattern::kAllUrlsPattern), |
| 9 user_date(-1), | 9 user_date(-1), |
| 10 suppression(0) {} | 10 suppression(0) {} |
| 11 | 11 |
| 12 DefaultWebIntentService::DefaultWebIntentService( |
| 13 const string16& srv_action, |
| 14 const string16& srv_type, |
| 15 const std::string& srv_service_url) |
| 16 : action(srv_action), type(srv_type), |
| 17 url_pattern(URLPattern::SCHEME_ALL, URLPattern::kAllUrlsPattern), |
| 18 user_date(-1), suppression(0), service_url(srv_service_url) {} |
| 19 |
| 12 DefaultWebIntentService::~DefaultWebIntentService() {} | 20 DefaultWebIntentService::~DefaultWebIntentService() {} |
| 13 | 21 |
| 14 bool DefaultWebIntentService::operator==( | 22 bool DefaultWebIntentService::operator==( |
| 15 const DefaultWebIntentService& other) const { | 23 const DefaultWebIntentService& other) const { |
| 16 return action == other.action && | 24 return action == other.action && |
| 17 type == other.type && | 25 type == other.type && |
| 18 url_pattern == other.url_pattern && | 26 url_pattern == other.url_pattern && |
| 19 user_date == other.user_date && | 27 user_date == other.user_date && |
| 20 suppression == other.suppression && | 28 suppression == other.suppression && |
| 21 service_url == other.service_url; | 29 service_url == other.service_url; |
| 22 } | 30 } |
| OLD | NEW |