Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_COMMON_RESOURCE_REQUEST_BODY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_BODY_IMPL_H_ |
| 6 #define CONTENT_COMMON_RESOURCE_REQUEST_BODY_IMPL_H_ | 6 #define CONTENT_COMMON_RESOURCE_REQUEST_BODY_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 | 51 |
| 52 // Identifies a particular upload instance, which is used by the cache to | 52 // Identifies a particular upload instance, which is used by the cache to |
| 53 // formulate a cache key. This value should be unique across browser | 53 // formulate a cache key. This value should be unique across browser |
| 54 // sessions. A value of 0 is used to indicate an unspecified identifier. | 54 // sessions. A value of 0 is used to indicate an unspecified identifier. |
| 55 void set_identifier(int64_t id) { identifier_ = id; } | 55 void set_identifier(int64_t id) { identifier_ = id; } |
| 56 int64_t identifier() const { return identifier_; } | 56 int64_t identifier() const { return identifier_; } |
| 57 | 57 |
| 58 // Returns paths referred to by |elements| of type Element::TYPE_FILE. | 58 // Returns paths referred to by |elements| of type Element::TYPE_FILE. |
| 59 std::vector<base::FilePath> GetReferencedFiles() const; | 59 std::vector<base::FilePath> GetReferencedFiles() const; |
| 60 | 60 |
| 61 // Sets the flag which indicates whether the post data contains sensitive | |
| 62 // information like passwords. | |
|
jam
2016/10/14 22:36:03
nit: no need to duplicate comment on setters and b
ananta
2016/10/15 00:23:31
Done.
| |
| 63 void set_contains_sensitive_info(bool contains_sensitive_info) { | |
| 64 contains_sensitive_info_ = contains_sensitive_info; | |
| 65 } | |
| 66 bool contains_sensitive_info() const { return contains_sensitive_info_; } | |
| 67 | |
| 61 private: | 68 private: |
| 62 ~ResourceRequestBodyImpl() override; | 69 ~ResourceRequestBodyImpl() override; |
| 63 | 70 |
| 64 std::vector<Element> elements_; | 71 std::vector<Element> elements_; |
| 65 int64_t identifier_; | 72 int64_t identifier_; |
| 66 | 73 |
| 74 // Set to true if the post data contains sensitive information like | |
| 75 // passwords, etc. | |
| 76 bool contains_sensitive_info_; | |
| 77 | |
| 67 DISALLOW_COPY_AND_ASSIGN(ResourceRequestBodyImpl); | 78 DISALLOW_COPY_AND_ASSIGN(ResourceRequestBodyImpl); |
| 68 }; | 79 }; |
| 69 | 80 |
| 70 } // namespace content | 81 } // namespace content |
| 71 | 82 |
| 72 #endif // CONTENT_COMMON_RESOURCE_REQUEST_BODY_IMPL_H_ | 83 #endif // CONTENT_COMMON_RESOURCE_REQUEST_BODY_IMPL_H_ |
| OLD | NEW |