DescriptionAdd DriveApiUrlGenerator.
This CL is preparation for server path injection, especially for testing.
It Extracts URL constructing logic from GetURL methods of the classes in
drive_api_operations.{h,cc}, and puts them into a new class
DriveApiUrlGenerator.
DriveApiUrlGenerator is given via operation classes' constructors from their
client (DriveApiService).
The concept of this CL is very similar to the following CLs:
https://codereview.chromium.org/11411086
https://codereview.chromium.org/11418084
https://codereview.chromium.org/11417108
https://codereview.chromium.org/11417109
BUG=162155
TEST=ran unit_tests and chromeos_unittests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175504
Patch Set 1 #
Total comments: 4
Patch Set 2 : Add const to the DriveApiUrlGenerator member variables. #
Total comments: 4
Patch Set 3 : Add comments about no DISALLOW_COPY_AND_ASSIGN. #Messages
Total messages: 15 (0 generated)
|