|
|
DescriptionSplit Resource::Status into a separate file
This is to remove dependencies from ImageResourceInfo.h and
ImageResourceContent.h to Resource.h in
https://codereview.chromium.org/2469873002/.
BUG=667641
Committed: https://crrev.com/34706455e96a5644ad61a57fc6bc3e8864dc5b36
Cr-Commit-Position: refs/heads/master@{#437700}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Rebase #Patch Set 4 : Rebase #Patch Set 5 : Rebase #Patch Set 6 : Rebase #Patch Set 7 : Rebase #
Total comments: 5
Patch Set 8 : fix copyright #Patch Set 9 : Rebase #
Total comments: 2
Dependent Patchsets: Messages
Total messages: 48 (38 generated)
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
hiroshige@chromium.org changed reviewers: + japhet@chromium.org, toyoshim@chromium.org, yhirano@chromium.org
PTAL. This is to remove dependencies from ImageResourceInfo.h and ImageResourceContent.h to Resource.h in [1]. I'm not sure whether removing the dependency is worth doing at the cost of an additional header file this CL. If it is fine with us to refer Resource::Status from ImageResourceInfo, then I'll revert ResourceStatus back into Resource::Status in [1] and close this CL. [1] https://codereview.chromium.org/2469873002/
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2537063002/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2537063002/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/Resource.cpp:304: constexpr Resource::Status Resource::NotStarted; I don't understand why these are needed. A static const[expr] member can be initialized in the class definition and a separate definition is not needed in such a case, right? https://codereview.chromium.org/2537063002/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/ResourceStatus.h (right): https://codereview.chromium.org/2537063002/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/ResourceStatus.h:2: Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) Wrong license.
https://codereview.chromium.org/2537063002/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2537063002/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/Resource.cpp:304: constexpr Resource::Status Resource::NotStarted; On 2016/12/08 04:45:26, yhirano wrote: > I don't understand why these are needed. A static const[expr] member can be > initialized in the class definition and a separate definition is not needed in > such a case, right? I also thought so but the compile failed on Linux if I remove these definitions. https://codereview.chromium.org/2537063002/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/ResourceStatus.h (right): https://codereview.chromium.org/2537063002/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/ResourceStatus.h:2: Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) On 2016/12/08 04:45:26, yhirano wrote: > Wrong license. Done.
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2537063002/diff/160001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/ResourceStatus.h (right): https://codereview.chromium.org/2537063002/diff/160001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/ResourceStatus.h:11: NotStarted, How about changing this to new kFooBar style together?
https://codereview.chromium.org/2537063002/diff/160001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/ResourceStatus.h (right): https://codereview.chromium.org/2537063002/diff/160001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/ResourceStatus.h:11: NotStarted, On 2016/12/09 07:20:38, toyoshim wrote: > How about changing this to new kFooBar style together? I think it's better to do it together with erasing/replacing Resource::NotStarted etc. (to avoid having both ResourceStatus::kNotStarted and Resource::NotStarted). I'll leave a TODO.
lgtm https://codereview.chromium.org/2537063002/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2537063002/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/Resource.cpp:304: constexpr Resource::Status Resource::NotStarted; On 2016/12/08 10:07:39, hiroshige wrote: > On 2016/12/08 04:45:26, yhirano wrote: > > I don't understand why these are needed. A static const[expr] member can be > > initialized in the class definition and a separate definition is not needed in > > such a case, right? > > I also thought so but the compile failed on Linux if I remove these definitions. yutak@ told me that an "odr-used" variable should have a separate definition. http://en.cppreference.com/w/cpp/language/definition#ODR-use
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by hiroshige@chromium.org
The CQ bit was unchecked by hiroshige@chromium.org
Description was changed from ========== Split Resource::Status BUG= ========== to ========== Split Resource::Status into a separate file This is to remove dependencies from ImageResourceInfo.h and ImageResourceContent.h to Resource.h in https://codereview.chromium.org/2469873002/. BUG=667641 ==========
The CQ bit was checked by hiroshige@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 160001, "attempt_start_ts": 1481324614522320, "parent_rev": "72c92d60b36db4834aace9a883f78046cfdd1855", "commit_rev": "7a9c2b1eead989fa00034b8e9969d3708a35eb15"}
Message was sent while issue was closed.
Description was changed from ========== Split Resource::Status into a separate file This is to remove dependencies from ImageResourceInfo.h and ImageResourceContent.h to Resource.h in https://codereview.chromium.org/2469873002/. BUG=667641 ========== to ========== Split Resource::Status into a separate file This is to remove dependencies from ImageResourceInfo.h and ImageResourceContent.h to Resource.h in https://codereview.chromium.org/2469873002/. BUG=667641 Review-Url: https://codereview.chromium.org/2537063002 ==========
Message was sent while issue was closed.
Committed patchset #9 (id:160001)
Message was sent while issue was closed.
Description was changed from ========== Split Resource::Status into a separate file This is to remove dependencies from ImageResourceInfo.h and ImageResourceContent.h to Resource.h in https://codereview.chromium.org/2469873002/. BUG=667641 Review-Url: https://codereview.chromium.org/2537063002 ========== to ========== Split Resource::Status into a separate file This is to remove dependencies from ImageResourceInfo.h and ImageResourceContent.h to Resource.h in https://codereview.chromium.org/2469873002/. BUG=667641 Committed: https://crrev.com/34706455e96a5644ad61a57fc6bc3e8864dc5b36 Cr-Commit-Position: refs/heads/master@{#437700} ==========
Message was sent while issue was closed.
Patchset 9 (id:??) landed as https://crrev.com/34706455e96a5644ad61a57fc6bc3e8864dc5b36 Cr-Commit-Position: refs/heads/master@{#437700} |