| 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/spellchecker/spellcheck_message_filter.h" | 5 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/prefs/pref_service.h" | |
| 12 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 13 #include "chrome/browser/spellchecker/feedback_sender.h" | 12 #include "chrome/browser/spellchecker/feedback_sender.h" |
| 14 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 13 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
| 15 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" | 14 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" |
| 16 #include "chrome/browser/spellchecker/spellcheck_service.h" | 15 #include "chrome/browser/spellchecker/spellcheck_service.h" |
| 17 #include "chrome/browser/spellchecker/spelling_service_client.h" | 16 #include "chrome/browser/spellchecker/spelling_service_client.h" |
| 18 #include "chrome/common/spellcheck_marker.h" | 17 #include "chrome/common/spellcheck_marker.h" |
| 19 #include "chrome/common/spellcheck_messages.h" | 18 #include "chrome/common/spellcheck_messages.h" |
| 19 #include "components/prefs/pref_service.h" |
| 20 #include "content/public/browser/render_process_host.h" | 20 #include "content/public/browser/render_process_host.h" |
| 21 #include "net/url_request/url_fetcher.h" | 21 #include "net/url_request/url_fetcher.h" |
| 22 | 22 |
| 23 using content::BrowserThread; | 23 using content::BrowserThread; |
| 24 | 24 |
| 25 SpellCheckMessageFilter::SpellCheckMessageFilter(int render_process_id) | 25 SpellCheckMessageFilter::SpellCheckMessageFilter(int render_process_id) |
| 26 : BrowserMessageFilter(SpellCheckMsgStart), | 26 : BrowserMessageFilter(SpellCheckMsgStart), |
| 27 render_process_id_(render_process_id), | 27 render_process_id_(render_process_id), |
| 28 client_(new SpellingServiceClient) { | 28 client_(new SpellingServiceClient) { |
| 29 } | 29 } |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 base::Unretained(this), | 181 base::Unretained(this), |
| 182 route_id, | 182 route_id, |
| 183 identifier, | 183 identifier, |
| 184 markers)); | 184 markers)); |
| 185 } | 185 } |
| 186 #endif | 186 #endif |
| 187 | 187 |
| 188 SpellcheckService* SpellCheckMessageFilter::GetSpellcheckService() const { | 188 SpellcheckService* SpellCheckMessageFilter::GetSpellcheckService() const { |
| 189 return SpellcheckServiceFactory::GetForRenderProcessId(render_process_id_); | 189 return SpellcheckServiceFactory::GetForRenderProcessId(render_process_id_); |
| 190 } | 190 } |
| OLD | NEW |