OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // The |FeedbackSender| object stores the user feedback to spellcheck | 5 // The |FeedbackSender| object stores the user feedback to spellcheck |
6 // suggestions in a |Feedback| object. | 6 // suggestions in a |Feedback| object. |
7 // | 7 // |
8 // When spelling service returns spellcheck results, these results first arrive | 8 // When spelling service returns spellcheck results, these results first arrive |
9 // in |FeedbackSender| to assign hash identifiers for each | 9 // in |FeedbackSender| to assign hash identifiers for each |
10 // misspelling-suggestion pair. If the spelling service identifies the same | 10 // misspelling-suggestion pair. If the spelling service identifies the same |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 #include "base/command_line.h" | 35 #include "base/command_line.h" |
36 #include "base/hash.h" | 36 #include "base/hash.h" |
37 #include "base/json/json_writer.h" | 37 #include "base/json/json_writer.h" |
38 #include "base/location.h" | 38 #include "base/location.h" |
39 #include "base/metrics/field_trial.h" | 39 #include "base/metrics/field_trial.h" |
40 #include "base/single_thread_task_runner.h" | 40 #include "base/single_thread_task_runner.h" |
41 #include "base/stl_util.h" | 41 #include "base/stl_util.h" |
42 #include "base/strings/string_number_conversions.h" | 42 #include "base/strings/string_number_conversions.h" |
43 #include "base/strings/stringprintf.h" | 43 #include "base/strings/stringprintf.h" |
44 #include "base/thread_task_runner_handle.h" | 44 #include "base/threading/thread_task_runner_handle.h" |
45 #include "base/values.h" | 45 #include "base/values.h" |
46 #include "chrome/browser/spellchecker/word_trimmer.h" | 46 #include "chrome/browser/spellchecker/word_trimmer.h" |
47 #include "chrome/common/chrome_switches.h" | 47 #include "chrome/common/chrome_switches.h" |
48 #include "chrome/common/spellcheck_common.h" | 48 #include "chrome/common/spellcheck_common.h" |
49 #include "chrome/common/spellcheck_marker.h" | 49 #include "chrome/common/spellcheck_marker.h" |
50 #include "chrome/common/spellcheck_messages.h" | 50 #include "chrome/common/spellcheck_messages.h" |
51 #include "components/data_use_measurement/core/data_use_user_data.h" | 51 #include "components/data_use_measurement/core/data_use_user_data.h" |
52 #include "content/public/browser/render_process_host.h" | 52 #include "content/public/browser/render_process_host.h" |
53 #include "crypto/random.h" | 53 #include "crypto/random.h" |
54 #include "crypto/secure_hash.h" | 54 #include "crypto/secure_hash.h" |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 senders_.push_back(sender); | 454 senders_.push_back(sender); |
455 | 455 |
456 // Request context is nullptr in testing. | 456 // Request context is nullptr in testing. |
457 if (request_context_.get()) { | 457 if (request_context_.get()) { |
458 sender->SetRequestContext(request_context_.get()); | 458 sender->SetRequestContext(request_context_.get()); |
459 sender->Start(); | 459 sender->Start(); |
460 } | 460 } |
461 } | 461 } |
462 | 462 |
463 } // namespace spellcheck | 463 } // namespace spellcheck |
OLD | NEW |